V
V
Vyacheslav Saratovsky2014-05-16 10:04:19
Node.js
Vyacheslav Saratovsky, 2014-05-16 10:04:19

How to solve websocket issue on node js?

When connecting, sometimes in the browser console there is such an error

Connection closed before receiving a handshake response

What is most likely the problem? In the ws module itself , or is it due to the fact that all my code is now executing synchronously, and the connection does not have time to be processed?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene Obrezkov, 2014-05-16
@super-developer

Increase the handshake timeout.
In general, use asynchrony and promises - this is NodeJS.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question