Does join presence event will fire in PUBNUB. If user is already subricibe with channel -


suppose same uuid subscribe() channels got subcribed @ different time , different browser

scenario

before 10 min using chrome

subcribe channel=>channel_1 uuid=> abcvalue

after 5 min using mozilla

subcribe channel=>channel_1 uuid=> abcvalue

 var pubnub = pubnub.init({             publish_key: "demo",             subscribe_key: "demo",             uuid:"abcvalue"         }); pubnub.subscribe({             channel:'channel_1',             presence:function(value, envelope, source_channel){         if( value.action ==="join" && value.uuid === 'abcvalue' )          console.log('join called') }); 

whether join called logged twice or not?

browser isn't factor.

and no, don't 2 presence join notices when using same uuid, 'abcvalue' chrome , firefox, first browser (chrome, in case) registers event.

because 'abcvalue' never left, , 'abcvalue' joining after 'abcvalue' joined means wouldn't join.

if assign uuid @ each connection (so each browser has different uuid), should see 2 separated join events called.


Comments