Skip to content

[FEAT] Auto enable receivePresenceEvents for channels with '-pnpres' suffix #391

@roman-rr

Description

@roman-rr

Please review & consider, if possible to automatically enable receivePresenceEvents: true for channels with suffix -pnpres, like so:

// Current usage
const subscriptionSet = pubnub.subscriptionSet({ 
    channels: ['ch1', 'ch2'], 
    subscriptionOptions: { receivePresenceEvents: true } 
});

// Possible variation to reduce code base
const subscriptionSet = pubnub.subscriptionSet({ channels: ['ch1-pnpres', 'ch2-pnpres'] });

And then both cases will have flag receivePresenceEvents: true, which can reduce code double-tube for presence/non-presence channels in client side.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions