onMessage property
Callback function invoked when a message is received.
Implementation
Function(SocketClient socket, Map<String, dynamic> data)? onMessage;
Callback function invoked when a message is received.
Function(SocketClient socket, Map<String, dynamic> data)? onMessage;