Function ntex::web::ws::start_with
source ยท pub async fn start_with<T, F, Err>(
req: HttpRequest,
factory: F
) -> Result<HttpResponse, Err>where
T: ServiceFactory<DispatchItem<Codec>, WsSink, Response = Option<Message>> + 'static,
T::Error: Debug,
F: IntoServiceFactory<T, DispatchItem<Codec>, WsSink>,
Err: From<T::InitError> + From<HandshakeError>,
Expand description
Do websocket handshake and start websockets service.