Skip to main content

Module server

Module server 

Source
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
Builder for WebSocket server connections.

Constants§

DISALLOWED_HEADERS
List of headers added by the server which will cause an error if added by the user: