From ac85a19d341ca17870faeacdae2f65a0fff1e4d0 Mon Sep 17 00:00:00 2001 From: Zhoner <30431991+Zhoner@users.noreply.github.com> Date: Fri, 26 Apr 2019 11:03:55 +0200 Subject: [PATCH] Update Client.js --- src/Client.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Client.js b/src/Client.js index b5585a0..c2b3d0e 100644 --- a/src/Client.js +++ b/src/Client.js @@ -32,9 +32,9 @@ class Operations { } }, 1); } - - send(socket, data) { - var socket = net.connect(socket, function() { + // {url,port} + send(socket_param, data) { + var socket = net.connect(socket_param, function() { socket.write(data); socket.on('data', function(data) {