Struct WebSocketServerOptions

Struct Documentation

struct WebSocketServerOptions

Options for a WebSocket server.

Public Members

Context context

The logging context for this server.

std::string name

The name of the server.

std::string host = "127.0.0.1"

The host address of the server.

uint16_t port = 8765

The port of the server. Default is 8765, which matches the Foxglove app.

WebSocketServerCallbacks callbacks

The callbacks of the server.

WebSocketServerCapabilities capabilities = WebSocketServerCapabilities(0)

The capabilities of the server.

std::vector<std::string> supported_encodings

The supported encodings of the server.

FetchAssetHandler fetch_asset

A fetch asset handler callback.

Friends

friend class WebSocketServer