pubnub / javascript

PubNub JavaScript SDK docs https://www.pubnub.com/docs/sdks/javascript
Other
553 stars 401 forks source link

objects event listener is not triggered when a new channel membership is added #279

Open jacklimwenjie opened 2 years ago

jacklimwenjie commented 2 years ago

Expected Behaviour

Calling pubnub.objects.setChannelMembers and pubnub.objects.setChannelMetadata should trigger objects event listener.

Actual Behaviour

The objects event listener is not triggered, regardless if the pubnub.objects.setChannelMembers and pubnub.objects.setChannelMetadata is called by the event listener owner to add himself/herself as a member to a channel, or is called by another user to add the event listener owner a member to a channel.

retsohuang commented 2 years ago

Hi @jacklimwenjie

Have you enabled the Objects events in the admin panel? I have the same issue as you earlier today until I enable the events it works fine now.

image