Does Defold support UDP sockets in any form? (SOLVED)

So I am working on a pet project which requires a low accuracy low latency connection (basically position/rotation data) and TCP is too slow so I need access to UDP sockets but as far as I can see anyway Defold only supports websockets/http requests.

Is this the case or have I just missed sockets completely in the documentation (wouldn’t be the first time I missed something),

Luasocket is part of builtins.

1 Like

But HTML5 supports only WebSockets

Yes, UDP sockets work since LuaSockets is included in Defold. I have a bunch of sample code showing how to work with LuaSocket, but I don’t have an UDP example yet. My examples and the LuaSocket reference manual should be enough to get you started though.

1 Like