Skynet
A lightweight online game framework
.... Skynet now uses a modified version of lua 5.4.2 for multiple lua states. Official Lua versions can also be used as long as the Makefile is edited. With Socket API and SocketChannel , which makes it easier to implement socket pool and reconnect, you can use Skynet to call socket even asynchronously. Skynet doesn't force a specific protocol, you can come up with your own design.