WebSocket class

Implemented types

Constructors

WebSocket()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → dynamic
Called when you want to close a connection
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onClose(OnClose callback) → dynamic
Called when a connection is closed
override
onFailure(OnFailure callback) → dynamic
Called when a connection has failed
override
onMessage(OnMessage callback) → dynamic
Called when websocket sends data
override
onSuccess(OnSuccess callback) → dynamic
Called when a connection is established
override
open(String url) → dynamic
Call this when you want to established a connection
override
send(String data) → dynamic
Called when you want to send data to websocket A string data in expected
override
sendUint8List(Uint8List data) → dynamic
Called when you want to send Uint8List to websocket A Uint8List data in expect
override
state() WebSocketState
Get the current state of the websocket
override
toString() String
A string representation of this object.
inherited

Operators

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