As you all probably know Defold comes with the socket core from LuaSocket bundled with the engine. This is excellent since it allows us to create TCP and UDP sockets without too much trouble. We also provide the socket.lua module in builtins/scripts for an even easier way of creating IPv6 and IPv4 connections, but what we do not provide is the rest of the *.lua files of the LuaSocket project. The Defold engine is also missing the mime core C part of the LuaSocket project. To remedy these things I’ve decided to wrap up the missing files and the mime core as an extension in the Asset Portal. Enjoy!
PS Note that this extension is of very little use to most users, but for those who wish to do advanced socket stuff or those who build extensions that requires the mime core of LuaSocket (I’m looking at you GameSparks!) it’s probably very useful.
luasocket_images.zip (195.1 KB)
Brilliant and oh so cute! Thanks!