onMessage method

void onMessage(
  1. void callback(
    1. String m
    )
)

Implementation

void onMessage(void callback(String m)) => _conn.onMessage.listen((e) {
      callback(_messageToString(e));
    });