Library Modulehummingbird-websocket 2.2.0HummingbirdWebSocket
HummingbirdWebSocket
import HummingbirdWebSocket
Module information
- Declarations
- 48
- Symbols
- 57
import HummingbirdWebSocket
protocol WebSocketRequestContext : InitializableFromSource, WebSocketContext where Self.Source == ApplicationRequestContextSource
Request context protocol requirement for routers that support WebSockets
struct BasicWebSocketRequestContext
Default implementation of a request context that supports WebSockets
struct HTTP1WebSocketUpgradeChannel
Child channel supporting a web socket upgrade from HTTP1
enum RouterShouldUpgrade
Enum indicating whether a router shouldUpgrade
function expects a WebSocket upgrade or not
enum ShouldUpgradeResult<Value> where Value : Sendable
Should HTTP channel upgrade to WebSocket
struct WebSocketHandlerReference<RequestContext> where RequestContext : WebSocketRequestContext
Reference to a WebSocket handler
struct WebSocketRouterContext<Context> where Context : WebSocketContext
WebSocket Context for upgrades initiated via a router
struct WebSocketServerConfiguration
Configuration for a WebSocket server
struct WebSocketUpgradeMiddleware<Context> where Context : WebSocketRequestContext
An alternative way to add a WebSocket upgrade to a router via Middleware
import HummingbirdWSClient
import HummingbirdWSCompression
import HummingbirdWSTesting