Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

event 'user-offline' does not work #17

Open
halibio opened this issue Dec 13, 2019 · 2 comments
Open

event 'user-offline' does not work #17

halibio opened this issue Dec 13, 2019 · 2 comments
Assignees

Comments

@halibio
Copy link

halibio commented Dec 13, 2019

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
Copy link
Contributor

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

@halibio
Copy link
Author

halibio commented Dec 16, 2019

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants