Skip to content
The LuaSocket *.lua files, modified to play nicely with Defold. Also contains the mime.core files as a native extension.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example Initial commit Nov 26, 2017
input
mime
socket
.gitignore
LICENSE.md
README.md
game.project
generated.appmanifest

README.md

defold-luasocket

The Defold engine already includes the socket module from LuaSocket and the accompanying socket.lua module (located in builtins/scripts/). The builtins folder of a Defold project does however not contain any of the other .lua files from the LuaSocket project and the Defold engine doesn't provide the mime.core files either. This project aims to provide the missing LuaSocket .lua files, modified to play nicely with Defold (the require calls for Lua base libraries have been changed to work with Defold). This project also provides the mime.core part of LuaSocket as a native extension. The version of LuaSocket used in Defold is 3.0-rc1.

Installation

You can use the extension in your own project by adding this project as a Defold library dependency. Open your game.project file and in the dependencies field under project add:

https://www.github.com/britzl/defold-luasocket/archive/master.zip

Or point to the ZIP file of a specific release.

Usage

See the documentation for LuaSocket for an in-depth API specification and example use cases. Also refer to the example folder inside this project.

You can’t perform that action at this time.