pub fn ws<H, F>(self, handler: H)
    where
        H: Send + Sync + 'static + Fn(WebSocket) -> F,
        F: Future<Output = Result<()>> + Send + 'static,
    {
        self.method(Method::GET, crate::ws::endpoint(handler));
    }
/// Attach a websocket handler to this route
Attach a websocket handler to this route
Attach a websocket handler to this route
pub fn ws<H, F>(self, handler: H)
    where
        H: Send + Sync + 'static + Fn(WebSocket) -> F,
        F: Future<Output = Result<()>> + Send + 'static,
    {
        self.method(Method::GET, crate::ws::endpoint(handler));
    }
pub fn ws < H , F > ( self , handler : H ) where H : Send + Sync + ' static + Fn ( WebSocket ) -> F , F : Future < Output = Result < ( ) > > + Send + ' static , { self . method ( Method :: GET , crate :: ws :: endpoint ( handler ) ) ; }
Attach a websocket handler to this route
Attach a websocket handler to this route
self
handler
H