justmedev
justmedev
I'll do all that. And when making a request, there will also be an optional Parameter for a callback function to make it non blocking on luas side
Why would a callback be blocking?
And what kind of events would you use? Just emit some kind of multiplayer event?
I meant the second thing you said. The function could have a callback argument: `MP.HttpGet(host, target, headers, callback)` so the function doesn't actually return anything but it invokes the callback...
Wouldn't an event need some kind of identifier so you don't get the wrong response?
So MP.HttpGet could return a random number/string and the event contains that I'd in the args. So Lua can check it the id is correct
Ok. I'll try to make a callback
Ok. So I've tried your example with es modules. It works, but there's a weird thing I had to do to get it working. I had to add `.default` to...