socket

Implements a luasocket module for TCP/UDP networking.
The luasocket module is bundled with love binary, but in order to use it, you need to require the module like this:

require("socket")

or even better:

local socket =require("socket")

Note: Since lua 5.2 LÖVE 0.11, the latter method is preferred recommended, as modules will no longer register themselves in the global space, instead they will return a table.

Note: When using blocking operations (network connect/read/write, or socket.sleep), the whole LÖVE main loop will be blocked, and it is usually a bad idea. So use only non-blocking operations if possible, or use it in a thread.