rouille::websocket

Function start

Source
pub fn start<S>(
    request: &Request,
    subprotocol: Option<S>,
) -> Result<(Response, Receiver<Websocket>), WebsocketError>
where S: Into<Cow<'static, str>>,
Expand description

Builds a Response that initiates the websocket protocol.