PhoenixHtmlConnection class
PhoenixHtmlConnection handles the creation and use of the underlying websocket connection on browser platforms.
Constructors
- PhoenixHtmlConnection(String _endpoint)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isConnected → bool
-
no setter
- readyState → int
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
[int? code, String? reason]) → void -
closeNormal(
[String? reason]) → void -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onClose(
void callback()) → void -
onError(
void callback(dynamic err)) → 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