Relative Content

Tag Archive for javascriptnode.jswebsocketerror-handlingtcp

Is there a list of error codes for WebSocket from the Node.JS ws package?

I’m writing a simple application with Node that connects to a WebSocket server and retrieve’s some information on a set interval. The application needs to be able to handle the possibility of different errors arising from the WebSocket. When I attach a listener to the error event of the socket, the following is an example of the error object that the application receives: