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