Package com.hivemq.client.mqtt
Interface MqttWebSocketConfig
Configuration for a WebSocket transport to use by
MQTT clients.- Since:
- 1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe default websocket handshake timeout in milliseconds.The default map of headers.The default WebSocket subprotocol.The default WebSocket query string.The default WebSocket server path. -
Method Summary
-
Field Details
-
DEFAULT_SERVER_PATH
The default WebSocket server path.- See Also:
-
DEFAULT_QUERY_STRING
The default WebSocket query string.- See Also:
-
DEFAULT_MQTT_SUBPROTOCOL
The default WebSocket subprotocol.- See Also:
-
DEFAULT_HANDSHAKE_TIMEOUT_MS
static final int DEFAULT_HANDSHAKE_TIMEOUT_MSThe default websocket handshake timeout in milliseconds.- Since:
- 1.2
- See Also:
-
DEFAULT_HTTP_HEADERS
The default map of headers.- Since:
- 1.2.3
-
-
Method Details
-
builder
Creates a builder for a WebSocket configuration.- Returns:
- the created builder for a WebSocket configuration.
-
getServerPath
- Returns:
- the WebSocket server path.
-
getQueryString
- Returns:
- the WebSocket query string.
-
getSubprotocol
- Returns:
- the WebSocket subprotocol.
-
getHandshakeTimeoutMs
int getHandshakeTimeoutMs()- Returns:
- the websocket handshake timeout in milliseconds.
- Since:
- 1.2
-
getHttpHeaders
- Returns:
- map of already set headers.
- Since:
- 1.2.3
-
extend
Creates a builder for extending this WebSocket configuration.- Returns:
- the created builder.
- Since:
- 1.1
-