Function simple_websockets::launch
source · pub fn launch(port: u16) -> Result<EventHub, Error>
Expand description
Start listening for websocket connections on port
.
On success, returns an EventHub
for receiving messages and
connection/disconnection notifications.