question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Need callback for error in connection

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
FZambiacommented, May 10, 2017

@bubooon hello! Yeah, I think it’s reasonable to have, could you describe why do you specifically need this btw?

0reactions
buboooncommented, Apr 4, 2018

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found