event 'user-offline' does not work
halibio opened this issue · 2 comments
halibio commented
event 'user-offline' does not work for me. I use cocos creator v2.1.3, typescript & chrome
I init event:
agora.on('user-offline', this.onUserOffline, this);
and function:
onUserOffline(uid, reason) { cc.log("onUserOffline, uid: " + uid + " reason: " + reason); }
plutoless commented
how does it not work? what is your testing scenario, do you have your reproducible project?
halibio commented
Hi @plutoless , this is testing scenario:
Step 1: User A join channel 'xxx' success
Step 2: User B join channel 'xxx' success
Step 3: User B leave channel 'xxx' success
Step 4: User A not receive event 'user-offline'