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