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