|
|
@ -110,7 +110,6 @@ var handleConversion = { |
|
|
|
'net.Socket': { |
|
|
|
send: function(message, socket) { |
|
|
|
// pause socket so no data is lost, will be resumed later
|
|
|
|
socket.pause(); |
|
|
|
|
|
|
|
// if the socket wsa created by net.Server
|
|
|
|
if (socket.server) { |
|
|
@ -142,7 +141,6 @@ var handleConversion = { |
|
|
|
got: function(message, handle, emit) { |
|
|
|
var socket = new net.Socket({handle: handle}); |
|
|
|
socket.readable = socket.writable = true; |
|
|
|
socket.pause(); |
|
|
|
|
|
|
|
// if the socket was created by net.Server we will track the socket
|
|
|
|
if (message.key) { |
|
|
@ -153,7 +151,6 @@ var handleConversion = { |
|
|
|
} |
|
|
|
|
|
|
|
emit(socket); |
|
|
|
socket.resume(); |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|