basws-server-0.1.0-dev-1 has been yanked.
basws-server
basws-server is a simple WebSocket framework. For more information, see the basws README.
To set up your own protocol server:
- Implement the
ServerLogictrait - Initialize a
Serversingleton passing in yourServerLogicimplementor - In your warp filters, call
Server::incoming_connectionwith the websocket during on_upgrade - You can use
Server::send_to_installation_id,Server::send_to_account_id, andServer::broadcastto communicate out-of-band with clients.
For a full example, check out the chat-server example.