Function rouille::websocket::start [] [src]

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

Builds a Response that initiates the websocket protocol.