TransportConfig class

Internal configuration passed to a ChatTransport on connect.

Not exposed through the public SDK API — callers configure the client via ChataptorConfig, and the client translates that into a TransportConfig before handing it to the transport.

Annotations
  • @immutable

Constructors

TransportConfig({required Uri url, required Map<String, dynamic> params, required Duration heartbeatInterval, required List<Duration> reconnectionDelays})
Creates a TransportConfig.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
heartbeatInterval Duration
Heartbeat interval. Phoenix default is 30 s.
final
params Map<String, dynamic>
Query-string / join-payload parameters (widget key, site id, platform, customer data, ...).
final
reconnectionDelays List<Duration>
Explicit backoff schedule for reconnect attempts. The transport cycles through this list and repeats the last entry indefinitely.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url Uri
WebSocket URL (e.g. wss://api.chataptor.com/socket/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