error message
events.js:141
throw er; // Unhandled 'error' event
^
Error: read ECONNRESET
at exports._errnoException (util.js:870:11)
at TCP.onread (net.js:544:26)
terms of settlement
Add event monitoring of error and close
var ws = require("nodejs-websocket");
var fs = require("fs");
var zmqutil = require('./zmqutil')
var server = ws.createServer(function (conn) {
console.log("connection sussess");
var push = zmqutil.socket('push')
push.connect('tcp://127.0.0.1:7113')
conn.on("close", function (code, reason) {
console.log("close connection")
});
conn.on("error", function (code, reason) {
console.log("close error")
});
......
}
Read More:
- [Solved] electron Install Error: RequestError: read ECONNRESET
- [Solved] Websocket Error: WebSocket is already in CLOSING or CLOSED state
- The reason and solution for the error ECONNRESET of the httpClieint request of Node.js
- How to Fix TNS 12560 Error
- How to Fix “Cannot open Eclipse Marketplace” Error
- How to Fix Microsoft SQL Server Error 1326
- How to Fix NSS error 12190 in curl accessing to HTTPS
- How to Fix Webpack run error webpack dev server
- How to Fix Spoolsv.exe Application Error
- How to Fix the common Warning Errors after Vue Project Startup
- How to Fix win10 video dxgkrnl fatal error
- How to Fix KeyError: ‘plotly_domain’
- How to Fix the printer error 0x00000709 on Windows
- Start failure: spawn CMD enoent error (How to Fix)
- [Nginx] Configure nginx to support websocket to solve the problem of returning 400 error
- How to Fix Common Arcpy Error
- How to Fix Cannot convert value of type Error
- How to Fix Node SASS Error in Vue + webpack project after nodejs upgrade
- How to Fix error: conversion from “” to non-scalar type “”
- How to Fix Error return arrays must be of arraytype