subscribe method

  1. @override
Future subscribe(
  1. BuildContext context, {
  2. bool configureBackground = false,
})
override

Implementation

@override
Future subscribe(BuildContext context, {bool configureBackground = false}) async {
  _sub?.cancel();
  _sub = _mc?.onMessage.map((m) {
    log.info("Got a new web message!");
    return m;
  }).listen((msg) => newRawMessage(PushSource.foreground, msg), cancelOnError: false);
}