A Lua library providing RFC 6455 compliant WebSocket client and server implementations with synchronous, coroutine, and async flavors.
lua-websockets is a Lua library that implements the WebSocket protocol (RFC 6455) for building real-time, bidirectional communication channels. It provides both client and server modules with support for synchronous, coroutine-based, and asynchronous programming models, allowing developers to integrate WebSockets into Lua applications efficiently.
Lua developers and system architects who need to add WebSocket support to applications, such as game servers, IoT backends, or real-time data dashboards, and prefer lightweight, embeddable solutions.
It offers a minimal, compliant WebSocket implementation without bundling a web server, giving developers flexibility to choose their own stack while supporting multiple concurrency models to match different performance and complexity needs.
Websockets for Lua.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Implements the standardized WebSocket protocol version 13, ensuring reliable interoperability with other compliant clients and servers.
Offers synchronous, coroutine-based via Copas, and asynchronous via lua-ev clients and servers, fitting different performance and architectural needs.
The minified version is approximately 10 kilobytes, making it suitable for embedded or resource-constrained Lua environments.
Designed to work alongside any web server, as WebSockets bypass same-origin policy, allowing flexible integration without bundling server functionality.
The README explicitly states the project is not maintained and seeks a new maintainer, posing significant risks for bug fixes, security updates, and compatibility.
Requires multiple dependencies like luasocket, luasec, and optional copas or lua-ev, which can complicate installation and increase deployment overhead.
Running tests requires Docker and can be time-consuming, and the project lacks comprehensive examples or guides beyond basic echo servers.