receiptTimeout

var receiptTimeout: Duration

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.

Note that this doesn't apply to the DISCONNECT frames, use disconnectTimeout instead for that.

Sources

Link copied to clipboard