Skip to content
Browse files

post hack cleanup

  • Loading branch information...
1 parent dac55cd commit ee079a300a142704a83770dd46541d129e617c60 Brian Geffon committed Jul 30, 2011
Showing with 1 addition and 9 deletions.
  1. +1 −9 jstcp.js
View
10 jstcp.js
@@ -13,7 +13,7 @@ TCPUtil.cleanFromTransmit = JSON.parse;
var TCPProxy = function(socketio_client, encoding, nodelay) {
var sock_encoding = encoding || 'utf8';
- var opt_nodelay = nodelay || true;
+ var opt_nodelay = nodelay || false;
var net = require("net");
var socket = new net.Socket();
@@ -57,14 +57,6 @@ var TCPProxy = function(socketio_client, encoding, nodelay) {
} else {
TCPUtil.log("ERROR: NO base64 decoder available.");
}
- }
- else if (data.encoding === 'intarr') {
- TCPUtil.log("Message to forward is intarr encoded: " + data.data);
-
- raw = '';
- for(i = 0; i < data.data.length; i++) {
- raw += (String.fromCharCode(data.data[i])[0]);
- }
} else { raw = data.data; }
if(sock_connected)

0 comments on commit ee079a3

Please sign in to comment.
Something went wrong with that request. Please try again.