|
|
|
@ -17,10 +17,11 @@ module.exports.create = function (config) {
|
|
|
|
|
.on('sessionClose', historyKeeper.sessionClose)
|
|
|
|
|
.on('error', function (error, label, info) {
|
|
|
|
|
if (!error) { return; }
|
|
|
|
|
if (['EPIPE', 'ECONNRESET'].indexOf(error && error.code) !== -1) { return; }
|
|
|
|
|
/* labels:
|
|
|
|
|
SEND_MESSAGE_FAIL, SEND_MESSAGE_FAIL_2, FAIL_TO_DISCONNECT,
|
|
|
|
|
FAIL_TO_TERMINATE, HANDLE_CHANNEL_LEAVE, NETFLUX_BAD_MESSAGE,
|
|
|
|
|
NETFLUX_WEBSOCKET_ERROR
|
|
|
|
|
NETFLUX_WEBSOCKET_ERROR, NF_ENOENT
|
|
|
|
|
*/
|
|
|
|
|
log.error(label, {
|
|
|
|
|
code: error.code,
|
|
|
|
|