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
As the title states,
how to deal when trying to connect to a non-answering endpoint? the connect promise will never resolve no disconnect or error gets fired?
The text was updated successfully, but these errors were encountered:
Hello, by default - yes. But you can use maxTimeout option (in ms)(https://gregivy.github.io/simpleddp/simpleDDP.html) like this:
maxTimeout
let opts = { endpoint: "ws://someserver.com/websocket", SocketConstructor: ws, reconnectInterval: 5000, maxTimeout: 15000 }; const server = new simpleDDP(opts);
Sorry, something went wrong.
Hello Gregivy, I'm having similar issue, I think we need a graceful way to handle that error, settings the maxTimeout doesn't throw an error.
The maxtTimeout does trigger on method calls so it does the trick.
Thanks @Gregivy for this great library.
Thank you @aliogaili, however I am going to add maxTimeout for .connect() method, it is a good idea.
.connect()
No branches or pull requests
As the title states,
how to deal when trying to connect to a non-answering endpoint? the connect promise will never resolve no disconnect or error gets fired?
The text was updated successfully, but these errors were encountered: