Skip to content
This repository has been archived by the owner on Sep 5, 2019. It is now read-only.

peer-leave event not triggering. #28

Open
nitheeshskiploop opened this issue May 22, 2019 · 3 comments
Open

peer-leave event not triggering. #28

nitheeshskiploop opened this issue May 22, 2019 · 3 comments
Assignees

Comments

@nitheeshskiploop
Copy link

On peer left channel i'm expected onUserOffline event to be triggered.
RtcEngine.on("userOffline", data => { console.log("[RtcEngine] onUserOffline", data); });
But event not been triggering , onUserJoined event works fine.

RtcEngine.on("userJoined", data => { console.log("[RtcEngine] onUserJoined", data); });

My package JSON

`{

"name": "IonAssist",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"lodash": "^4.17.11",
"react": "16.8.3",
"react-native": "0.59.3",
"react-native-agora": "^2.4.0-alpha-1",
"react-native-config": "^0.11.7",
"react-native-elements": "^1.1.0",
"react-native-gesture-handler": "^1.1.0",
"react-native-orientation": "^3.1.3",
"react-native-paper": "^2.15.2",
"react-native-vector-icons": "^6.4.2",
"react-navigation": "^3.7.1",
"react-redux": "^6.0.1",
"redux": "^4.0.1",
"redux-persist": "^5.10.0",
"redux-saga": "^1.0.2"
},
"devDependencies": {
"@babel/core": "^7.4.3",
"@babel/runtime": "^7.4.3",
"babel-jest": "^24.7.1",
"jest": "^24.7.1",
"metro-react-native-babel-preset": "^0.53.1",
"react-test-renderer": "16.8.3"
},
"jest": {
"preset": "react-native"
}
}`

@Matrixbirds
Copy link

@nitheeshskiploop Could u reproduce it from our agora-rn-quickstart? The userOffline event should be triggered when peer side invoke leaveChannel success

@nitheeshskiploop
Copy link
Author

i need a event when peer will leave the channel

@Matrixbirds

@plutoless
Copy link
Contributor

@nitheeshskiploop if you leave the channel via leaveChannel api the userOffline event should be immediately triggered. While if you leave the channel via some other way, there will be a timeout (about 15-30seconds) for you to receive userOffline event. If this is not the case, do let us know.

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

No branches or pull requests

3 participants