Module websocket

Module websocket 

Source
Expand description

A more flexible version of axum::extract::ws. This could probably get pulled out into its own crate at some point.

Re-exports§

pub use tokio_tungstenite::tungstenite;

Structs§

CloseFrame
A struct representing the close command.
PendingWebSocket
RequestSecWebsocketProtocol
ResponseSecWebsocketProtocol
WebSocketConfig
The configuration for WebSocket connection.
WebSocketResponse
An type representing an http response for a successful websocket upgrade. Note that this response must be returned to the client for PendingWebSocket::upgrade to succeed.
WebSocketUpgrade

Enums§

CloseCode
Status code used to indicate why an endpoint is closing the WebSocket connection.
Message
An enum representing the various forms of a WebSocket message.
WebSocketUpgradeRejection
WsError
Possible WebSocket errors.

Type Aliases§

WebSocketStream