basws-server is a simple WebSocket framework. For more information, see the basws README.
To set up your own protocol server:
Serverpassing in your
server.incoming_connectionwith the websocket during on_upgrade. Make sure to
moveinto closures and
clone()as needed. The Server is a reference-counted type, so cloning is cheap.
server.broadcastto communicate out-of-band with clients.
For a full example, check out the chat-server example.