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

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.