onMessage property

void Function(WsMsgClient)? onMessage
getter/setter pair

Called when a message is received from the WebSocket

Implementation

void Function(WsMsgClient)? onMessage;