on method
Subscribe to an event
if the socket isConnected.
On event receive, the callback handler
will be triggered.
Implementation
void on(String event, SocketIOHandler handler) {
if (isConnected) _socket!.on(event, handler);
}
Subscribe to an event
if the socket isConnected.
On event receive, the callback handler
will be triggered.
void on(String event, SocketIOHandler handler) {
if (isConnected) _socket!.on(event, handler);
}