onMessage abstract method

void onMessage(
  1. dynamic data,
  2. WebSocket socket
)

Implementation

void onMessage(dynamic data, WebSocket socket);