Hotline class

Constructors

Hotline(String url, {Function? onConnect, Function? onDisconnect, Map<String, String>? headers, Iterable<String>? protocols, Duration? pingInterval, Function? onConnectionRefused})

Properties

connectionState ↔ HotlineSocketConnectionState
health-check manager and subscription interface
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>?
getter/setter pair
onConnect Function?
WebSocket connection callbacks
getter/setter pair
onConnectionRefused Function?
getter/setter pair
onDisconnect Function?
getter/setter pair
pingInterval Duration?
getter/setter pair
protocols Iterable<String>?
optional headers
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
socketChannel ↔ IOWebSocketChannel
The wrapped socket channel
getter/setter pair
status Stream<HotlineSocketConnectionType>
A Stream for listeners of the connection state
no setter
stream StreamSubscription
getter/setter pair
subscriptions HotlineSubscriptionManager
latefinal
url String
WebSocket url
getter/setter pair

Methods

disconnect() → void
Disconnect from the server and close any subscriptions
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reconnect() → void
suspend() → void
Temporarily stop dispatching to any subscriptions
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited