Skip to content

Commit

Permalink
Merge pull request #47 from microp11/master
Browse files Browse the repository at this point in the history
For now stop sending quit at irc disconnect. The socket being closed will suffice.
  • Loading branch information
chrismatthieu committed Apr 20, 2012
2 parents b22d5cd + 4f87c75 commit e863ba8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion irc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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:
}
Expand Down
9 changes: 8 additions & 1 deletion public/js/tcp-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e863ba8

Please sign in to comment.