pub trait WebSocketExt { // Required method fn accept(&self) -> Result<(), JsValue>; }
Accepts the server side of the WebSocket.
CF Documentation