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);