presence property
Broadcast stream of presence events.
Will only emit when withPresence is true.
Implementation
Stream<PresenceEvent> get presence => _envelopesController.stream
.where((envelope) =>
envelope.userMeta != null &&
(presenceChannels.contains(envelope.channel) ||
presenceChannels.contains(envelope.subscriptionPattern) ||
presenceChannelGroups.contains(envelope.subscriptionPattern)))
.map<PresenceEvent>((envelope) => PresenceEvent.fromEnvelope(envelope));