Function websocket
Source pub async fn websocket(url: impl IntoUrl) -> Result<WebSocket, Error>
Expand description
Opens a WebSocket connection at the specified URL.
This is a shorthand for creating a Request, sending it, and turning the
Response into a WebSocket.