pubnub / dart

PubNub Dart SDK
Other
28 stars 15 forks source link

Method missing or not added in 3.0.0 #22

Closed mehtahardikr closed 4 years ago

mehtahardikr commented 4 years ago

hey @are :

one question

is this added ?


 pubnub.supervisor.events.listen((event) {
      // Check NetworkIsDownEvent OR NetworkIsUpEvent
    });

and is this not added as in your comments you told me to use ?

pubnub.signals.networkIsConnected.listen((isUp) {
  if (isUp) {
    print('network reconnected');
  } else {
    print('network disconnected');
  }
});

Please refer this : https://github.com/pubnub/dart/issues/19

are commented 4 years ago

It is available as pubnub.signals (documentation here: https://pub.dev/documentation/pubnub/latest/core/Signals-class.html).

mehtahardikr commented 4 years ago

okay got that. thank you !