Module tokio_websockets::server

source ·
Available on crate feature server only.
Expand description

Implementation of a WebSocket server.

This can be used in two ways:

  • By letting the library perform a HTTP/1.1 Upgrade handshake on an established stream, via Builder::accept
  • By performing the handshake yourself and then using Builder::serve to let it take over a WebSocket stream

Structs§

  • Builder for WebSocket server connections.