Open halibio opened 4 years ago
how does it not work? what is your testing scenario, do you have your reproducible project?
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'
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); }