Permalink
Browse files

Merge pull request #47 from microp11/master

For now stop sending quit at irc disconnect. The socket being closed will suffice.
  • Loading branch information...
2 parents b22d5cd + 4f87c75 commit e863ba8b2a5263049e460e42ae15fcb503a6356a @chrismatthieu chrismatthieu committed Apr 20, 2012
Showing with 9 additions and 2 deletions.
  1. +1 −1 irc.js
  2. +8 −1 public/js/tcp-client.js
View
2 irc.js
@@ -138,7 +138,7 @@ var appProcessor = function (action, client, msg, socket) {
}
break;
case "disconnect":
- socket.write("QUIT :webclient closed browser\r\n");
+ //socket.write("QUIT :Web user closed browser\r\n");
break;
default:
}
View
@@ -18,7 +18,14 @@ Client.prototype.connect = function () {
var that = this;
if (typeof this.socket === "undefined" || this.socket === null) {
- this.socket = io.connect("http://" + window.location.host, {"reconnect": false});
+ this.socket = io.connect("http://" + window.location.host, {
+ "reconnect": false,
+ "connect timeout": 65000 //10000
+// "reconnection delay": 1000, //500
+// "reconnection limit": Infinity,
+// "reopen delay": 3000,
+// "max reconnection attempts": 30, //10
+ });
} else {
//reconnects
if (this.socket.socket.connected) {

0 comments on commit e863ba8

Please sign in to comment.