Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

For now stop sending quit at irc disconnect. The socket being closed will suffice. #47

Merged
merged 5 commits into from

2 participants

microp11 Chris Matthieu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 18, 2012
  1. microp11

    :) no comment

    microp11 authored
Commits on Apr 20, 2012
  1. microp11

    Reverted to before reconnect.

    microp11 authored
    Changed connect timeout.
  2. microp11
  3. microp11

    Enabled socket.io debug info.

    microp11 authored
  4. microp11

    Commit for irc.nodester.com

    microp11 authored
This page is out of date. Refresh to see the latest.
Showing with 9 additions and 2 deletions.
  1. +1 −1  irc.js
  2. +8 −1 public/js/tcp-client.js
2  irc.js
View
@@ -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:
}
9 public/js/tcp-client.js
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) {
Something went wrong with that request. Please try again.