onMessage method

void onMessage(
  1. MessageSocket fn
)

Implementation

void onMessage(MessageSocket fn) {
  socketNotifier!.addMessages(fn);
}