From 701e5111a656b6de449d833eca3f011f36d67e08 Mon Sep 17 00:00:00 2001 From: Zhoner <30431991+Zhoner@users.noreply.github.com> Date: Fri, 26 Apr 2019 11:06:20 +0200 Subject: [PATCH] Update Client.js it didn't work --- 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) {