Connection class

Constructors

Connection({required String url, required EventHandler eventHandler, required VoidCallback afterConnect})

Properties

afterConnect VoidCallback
getter/setter pair
eventHandler EventHandler
final
hashCode int
The hash code for this object.
no setterinherited
pongReceived bool
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String
final

Methods

bind(String eventName, dynamic callback(dynamic event)) → void
connect() Future<void>
disconnect() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onMessage(dynamic data) → void
reconnect() → void
sendEvent(String eventName, dynamic data, {String channelName = ''}) → void
sendPing() → void
toString() String
A string representation of this object.
inherited

Operators

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