Hotline class


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


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
url String
WebSocket url
getter/setter pair


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


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