StompConfig

Configuration for the STOMP client.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Whether to automatically compute and add the content-length header in sent frames.

Link copied to clipboard

Whether to automatically attach a receipt header to the sent frames in order to track receipts.

Link copied to clipboard

Defines how long to wait for the websocket+STOMP connection to be established before throwing an exception.

Link copied to clipboard

Whether to use the STOMP command instead of CONNECT to establish the connection.

Link copied to clipboard

An additional coroutine context used for the collection and decoding of the STOMP frames within StompSessions created by this client.

Link copied to clipboard

Like receiptTimeout but only for the receipt of the DISCONNECT frame. This is ignored if gracefulDisconnect is disabled.

Link copied to clipboard

Whether the connection fails if the version of the STOMP protocol is negotiated to different values at the web socket handshake level (via subprotocol), and at STOMP level (in the CONNECT/CONNECTED frames).

Link copied to clipboard
Link copied to clipboard

The HeartBeat to request for the STOMP sessions.

Link copied to clipboard

Defines tolerance for heart beats.

Link copied to clipboard

A set of hooks that are called in different places of the internal execution of Krossbow. The instrumentation can be used for monitoring, logging or debugging purposes.

Link copied to clipboard

Defines how long to wait for a RECEIPT frame from the server before throwing a LostReceiptException. Only crashes when a receipt header was actually present in the sent frame (and thus a RECEIPT was expected). Such header is always present if autoReceipt is enabled.

Link copied to clipboard

When the session is disconnected or when an error occurs, subscription flows complete or throw an exception. This timeout defines how long the STOMP session will wait for subscribers to reach this completion/error before cancelling them along with internal coroutines.