A
A
Alex Mustdie2016-07-15 16:36:37
Node.js
Alex Mustdie, 2016-07-15 16:36:37

How to get a response after sending a message over WebSocket?

Good day!
Implemented a small chat in Node.js using web sockets . Sending some data: ws.send(data); How to get a response from the server so that, in which case, it would be possible to catch the error?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Zelensky, 2016-07-15
@SergeyZelensky-Rostov

you have a node.js console do console.log in the server code and see the errors

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question