We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm using "reconnecting-websocket": "^4.1.10" in React Native project.
"reconnecting-websocket": "^4.1.10"
My code for websocket initializing:
this.ws = new ReconnectingWebSocket(this.url) this.ws.onopen = connectedHandler this.ws.onclose = disconnectedHandler this.ws.onerror = disconnectedHandler this.ws.addEventListener('error', (e) => { disconnectedHandler() }) this.ws.addEventListener('close', (e) => { disconnectedHandler() }) this.ws.addEventListener('open', (e) => { connectedHandler() })
So I will call disconnectedHandler for close and error events.
disconnectedHandler
close
error
But those events not fired when I lost my connection
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm using
"reconnecting-websocket": "^4.1.10"
in React Native project.
My code for websocket initializing:
So I will call
disconnectedHandler
forclose
anderror
events.But those events not fired when I lost my connection
The text was updated successfully, but these errors were encountered: