Expand description
Listening endpoint for ws:// URLs.
WsListener wraps std::net::TcpListener and implements
confium_net::Listener. Each accept
blocks for an inbound TCP connection, then performs the WebSocket
server-side handshake ([tungstenite::accept]) to upgrade it,
returning a crate::WsTransport wrapping the upgraded
[tungstenite::WebSocket].
Server-side TLS for wss:// is not implemented here; a
TLS-terminating reverse proxy (nginx, Caddy, etc.) in front of a
plain ws:// listener is the recommended deployment.
Structsยง
- WsListener
- Listening endpoint for inbound WebSocket connections.