Hotline class Null safety

Hotline - an ActionCable-like API to subscribe to ActionCable channels

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
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
headers Map<String, String>?
read / write
onConnect Function?
read / write
onConnectionRefused Function?
read / write
onDisconnect Function?
read / write
pingInterval Duration?
read / write
protocols Iterable<String>?
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
socketChannel IOWebSocketChannel
read / write
status Stream<HotlineSocketConnectionType>
allow for listeners on the connection state stream
read-only
stream StreamSubscription
read / write
subscriptions HotlineSubscriptionManager
final, read / write, late
url String
read / write

Methods

disconnect() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
reconnect() → void
suspend() → void
toString() String
A string representation of this object. [...]
inherited

Operators

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