ShiSockListener class

Constructors

ShiSockListener(String address, int port)
Constructor of the class, it equally calling the function which in turn call another function that will create and maintain the connection with the server.

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() → void
For closing the connection between the client and engine.
createChannel({required List<String> channels}) → void
This function create new channels on which client and server can communicate.
isClosed() bool
listen(String channel, void fn(Map<String, String> data, void sender(String, String))) → void
It can be used to listen for the coming the data from server on the specific channels.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
send(String channel, String data) → void
It is used to send the data to server.
toString() String
A string representation of this object.
inherited

Operators

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