Skip to main content

WebSocketGateway

Trait WebSocketGateway 

Source
pub trait WebSocketGateway:
    Send
    + Sync
    + 'static {
    // Required method
    fn on_connect(
        &self,
        ctx: WebSocketContext,
        socket: WebSocket,
    ) -> Pin<Box<dyn Future<Output = ()> + Send>>;
}

Required Methods§

Source

fn on_connect( &self, ctx: WebSocketContext, socket: WebSocket, ) -> Pin<Box<dyn Future<Output = ()> + Send>>

Implementors§