AgoraIO / Voice-Call-for-Mobile-Gaming

42 stars 53 forks source link

event 'user-offline' does not work #17

Open halibio opened 4 years ago

halibio commented 4 years ago

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 4 years ago

how does it not work? what is your testing scenario, do you have your reproducible project?

halibio commented 4 years ago

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'