Function ntex::web::ws::start[][src]

pub async fn start<T, F, S, Err>(
    req: HttpRequest,
    payload: S,
    factory: F
) -> Result<HttpResponse, Err> where
    T: ServiceFactory<Config = WebSocketsSink, Request = Frame, Response = Option<Message>>,
    T::Error: StdError + 'static,
    T::InitError: 'static,
    T::Service: 'static,
    F: IntoServiceFactory<T>,
    S: Stream<Item = Result<Bytes, PayloadError>> + Unpin + 'static,
    Err: From<T::InitError>,
    Err: From<HandshakeError>, 

Do websocket handshake and start websockets service.