onMessage method

void onMessage(
  1. dynamic message
)

Implementation

void onMessage(message) {
  print(message);
}