PhoenixIoConnection class Null safety

PhoenixIoConnection handles the creation and use of the underlying websocket connection on browser platforms.

Constructors

PhoenixIoConnection(String _endpoint)

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
isConnected bool
read-only
readyState int
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

close([int? code, String? reason]) → void
closeNormal([String? reason]) → void
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
onClose(void callback()) → void
onError(void callback(dynamic dynamic)) → void
onMessage(void callback(String? m)) → void
send(String data) → void
toString() String
A string representation of this object. [...]
inherited
waitForConnection() Future<PhoenixConnection>

Operators

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

Static Methods

provider(String endpoint) → PhoenixConnection