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

manoaratefy

Новичок
Автор темы
4
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 можно посмотреть тут

whyega52

Гений, миллионер, плейбой, долбаеб
Модератор
2,798
2,659
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 можно посмотреть тут