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()
→ Future<void>
-
Closes the connection to the
PoloServer
-
listen()
→ Future<void>
-
Starts listening for messages from
PoloServer
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
onConnect(void callback())
→ void
-
Sets onConnectCallback
-
onDisconnect(void callback())
→ void
-
Sets onDisconnectCallback
-
onEvent<T>(String event, void callback(T data))
→ void
-
Adds a Callback to an Event
-
registerType<T>(PoloTypeAdapter<T> type)
→ void
-
Register a custom Object as a Type with
PoloTypeAdapter
-
send<T>(String event, T data)
→ void
-
Sends message to the Server from Client
-
toString()
→ String
-
A string representation of this object.
inherited