onMessage property

EventStream<OnMessageMessage> get onMessage

Fired when a message is received through FCM.

Implementation

EventStream<OnMessageMessage> get onMessage =>
    $js.chrome.gcm.onMessage.asStream(($c) => ($js.OnMessageMessage message) {
          return $c(OnMessageMessage.fromJS(message));
        });