Hotline class Null safety

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

Constructors

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

Properties

connectionState HotlineSocketConnectionState
health-check manager
read / write, final, late
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, final, late
stream StreamSubscription
read / write, final, late
subscriptions HotlineSubscriptionManager
read / write, final, late
url String
read / write

Methods

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

Operators

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