Function reqwest_websocket::websocket

source ·
pub async fn websocket(url: impl IntoUrl) -> Result<WebSocket, Error>
Expand description

Opens a websocket at the specified URL.

This is a shorthand for creating a request, sending it, and turning the response into a websocket.