onMessage property
dynamic Function(dynamic msg)?
onMessage
getter/setter pair
Callback invoked when a message is received on the WebSocket.
Implementation
Function(dynamic msg)? onMessage;
Callback invoked when a message is received on the WebSocket.
Function(dynamic msg)? onMessage;