Need callback for error in connection
See original GitHub issueI want detect, if JS client can’t connect to centrifugo, but i can’t do this. I have just error in console
WebSocket connection to 'ws://domain.loc:8000/connection/websocket' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
Can you add some event for it?
Issue Analytics
- State:
- Created 6 years ago
- Comments:12 (7 by maintainers)
Top Results From Across the Web
is there a mongoose connect error callback
The error comes from the Mongoose documentation for connect() mongoosejs.com/docs/connections.html, which does not specify a callback is possible. – mikemaccana.
Read more >Error-First Callback in Node.js
Error -First Callback in Node.js is a function which either returns an error object or any successful data returned by the function.
Read more >error callback function issue
When I am executing the above code, it will ask me the location access. If I clicked on "Allow" then it is logging...
Read more >Async JavaScript Callback Functions, Error Handling and ...
In this video we are going to learn about what are Callback Functions ... feel good to have a disclaimer in every video...
Read more >Connector/Node.js Callback API - MariaDB Knowledge Base
In order to set this up, you need to assign the connection a `socketPath` value ... callback either return an Error with results/metadata...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@bubooon hello! Yeah, I think it’s reasonable to have, could you describe why do you specifically need this btw?
@FZambia, hi, sorry for a long response, but this is not solve my issue. I need catch event, for example, when i set bad port or Centrifuge server is down. Now in this case i have error:
WebSocket connection to 'ws://127.0.0.1:8001/connection/websocket' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
And i have this message every 5-10 seconds.I need just handle this case.