mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	| @@ -94,6 +94,13 @@ DebugNode.wsServer.on('connection',function(ws) { | ||||
| 			} | ||||
| 		} | ||||
| 	}); | ||||
| 	ws.on('error', function(err) { | ||||
| 	    util.log("[debug] ws error : "+err); | ||||
| 	}); | ||||
| }); | ||||
|  | ||||
| DebugNode.wsServer.on('error', function(err) { | ||||
|     util.log("[debug] ws server error : "+err); | ||||
| }); | ||||
|  | ||||
| DebugNode.logHandler = new events.EventEmitter(); | ||||
|   | ||||
| @@ -66,6 +66,9 @@ function WebSocketListenerNode(n) { | ||||
|         socket.on('message',function(data,flags){ | ||||
|             node.handleEvent(id,socket,'message',data,flags); | ||||
|         }); | ||||
|         socket.on('error', function(err) { | ||||
|             node.warn("An error occured on the ws connection: "+inspect(err)); | ||||
|         }); | ||||
|     }); | ||||
|  | ||||
|     node.on("close", function() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user