This project provides Lua modules for Websocket Version 13 conformant clients and servers.
The minified version is only ~10k bytes in size.
Clients are available in three different flavours:
- synchronous
- coroutine based (copas)
The client and server modules depend on:
- luasocket
- luabitop (if not using Lua 5.2 nor luajit)
- luasec
- copas (optionally)
$ git clone https://github.com/brostosjoined/lua-websocket-client.git
$ cd lua-websocket-client
$ luarocks make rockspecs/lua-websocket-client-scm-1.rockspec
A squishy
file for squish is
provided. Creating the minified version (~10k) can be created with:
$ squish --gzip
The minifed version has be to be installed manually though.