You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
User events are triggered when user metadata is set or deleted. Other users can receive these events by subscribing to the user's channel or if they are members of the same channel. In flutter PubNub package presently does not have such event handler who can handle update event.
The text was updated successfully, but these errors were encountered:
subodh-commits
changed the title
User Events is not found Dart PubNub Paclage
User Events is not found in Dart PubNub Package
Apr 15, 2021
In Dart SDK all messages that are sent through the PubNub network are received through the Subscription class. There is no separate event handler for each event type. However, each message in the subscription.messages stream has a messageType property that tells you what kind of message it is. In case of Objects events, the messageType will equal to MessageType.objects.
To create a stream with only Objects events, you can do something like this:
var subscription = pubnub.subscribe(channels: {'myChannel'});
var objectEvents = subscription.messages.where((envelope) => envelope.messageType ==MessageType.objects);
User events are triggered when user metadata is set or deleted. Other users can receive these events by subscribing to the user's channel or if they are members of the same channel. In flutter PubNub package presently does not have such event handler who can handle update event.
The text was updated successfully, but these errors were encountered: