Type Alias websocket::server::sync::Server

source ·
pub type Server<S> = WsServer<S, TcpListener>;
Expand description

Represents a WebSocket server which can work with either normal (non-secure) connections, or secure WebSocket connections.

This is a convenient way to implement WebSocket servers, however it is possible to use any sendable Reader and Writer to obtain a WebSocketClient, so if needed, an alternative server implementation can be used.

Aliased Type§

struct Server<S> {
    pub ssl_acceptor: S,
    /* private fields */
}

Fields§

§ssl_acceptor: S

The SSL acceptor given to the server