KsSocket class abstract
A library for websocket communication.
Constructors
Properties
Methods
-
close(
) → Future< void> - Close this WebSocket connection.
-
listen(
void onData(dynamic message), [bool decodeJson = true]) → void -
On each data event from this stream, the subscriber's
onData
handler is called -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
send(
Object data) → void -
Send message to server.
ConvertObject
tojson
and send. -
toString(
) → String -
A string representation of this object.
inherited
-
write(
dynamic message) → void -
Send message to server (no conversion).
message isString
orList<int>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited