How to achieve non-blocking http(s) request on moonloader?

manoaratefy

Новичок
Автор темы
2
0
Good morning,

I'm using libstd.ssl.https library (LuaSec 0.7) to perform a https request within a SA-MP moonloader mod. Unfortunately, the game is freezing until https request got a reply to the request.

How to achieve non-blocking https request within the game, so the game can continue until HTTP request is saved?

Thanks in advance.
 
Решение
Good morning,

I'm using libstd.ssl.https library (LuaSec 0.7) to perform a https request within a SA-MP moonloader mod. Unfortunately, the game is freezing until https request got a reply to the request.

How to achieve non-blocking https request within the game, so the game can continue until HTTP request is saved?

Thanks in advance.
Можешь использовать библиотеку effil, созданную для реализации подобной "многопоточности". Пример использования в связке с http можно посмотреть тут

why ega

РП игрок
Модератор
2,541
2,233
Good morning,

I'm using libstd.ssl.https library (LuaSec 0.7) to perform a https request within a SA-MP moonloader mod. Unfortunately, the game is freezing until https request got a reply to the request.

How to achieve non-blocking https request within the game, so the game can continue until HTTP request is saved?

Thanks in advance.
Можешь использовать библиотеку effil, созданную для реализации подобной "многопоточности". Пример использования в связке с http можно посмотреть тут