From 1ceb55cf577d0e7839485422b3c40f32442edaa9 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 12 Oct 2016 13:14:16 -0600 Subject: [PATCH] working --- wsclient.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/wsclient.js b/wsclient.js index 439d630..c96aedc 100644 --- a/wsclient.js +++ b/wsclient.js @@ -73,8 +73,8 @@ function run(copts) { , remotePort: opts.port }, function () { //console.log("[=>] first packet from tunneler to '" + cid + "' as '" + opts.service + "'", opts.data.byteLength); + // this will happen before 'data' is triggered localclients[cid].write(opts.data); - //localclients[cid].resume(); }); // 'data' /* @@ -115,8 +115,6 @@ function run(copts) { console.info("[end] closing client '" + cid + "' for '" + servername + "' (" + (handlers._numClients() - 1) + " clients)"); handlers._onLocalClose(cid, opts); }); - //localclients[cid].pause(); - //localclients[cid].write(opts.data); } , onend: function (opts) { var cid = Packer.addrToId(opts);