WebSocketOptions class
Options for configuring WebSocket-based DIDComm message pickup interactions.
This class allows customization of options for status request and live delivery change messages when using a WebSocket transport with a mediator.
Constructors
- WebSocketOptions({StatusRequestMessageOptions statusRequestMessageOptions = const StatusRequestMessageOptions(), LiveDeliveryChangeMessageOptions liveDeliveryChangeMessageOptions = const LiveDeliveryChangeMessageOptions(), int pingIntervalInSeconds = 30, bool deleteOnReceive = true})
-
Constructs WebSocketOptions.
const
Properties
- deleteOnReceive → bool
-
Indicates whether the message should be deleted from the mediator right after it was received by the client (default: true).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- liveDeliveryChangeMessageOptions → LiveDeliveryChangeMessageOptions
-
Options for the live delivery change message sent over WebSocket.
final
- pingIntervalInSeconds → int
-
Interval (in seconds) at which ping messages are sent to keep the
WebSocket connection alive.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statusRequestMessageOptions → StatusRequestMessageOptions
-
Options for the status request message sent over WebSocket.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited