WebSocketConfig¶
Immutable configuration for a WebSocket connection.
All fields have sensible defaults. Create with named arguments to override specific values:
let config = WebSocketConfig(where
host' = "0.0.0.0",
port' = "9090",
max_message_size' = 4_194_304)
Constructors¶
create¶
Create WebSocket configuration with optional overrides.
new val create(
host': String val = "localhost",
port': String val = "8080",
max_message_size': USize val = 1048576,
max_handshake_size': USize val = 8192)
: WebSocketConfig val^
Parameters¶
- host': String val = "localhost"
- port': String val = "8080"
- max_message_size': USize val = 1048576
- max_handshake_size': USize val = 8192
Returns¶
- WebSocketConfig val^