Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Reverted to before reconnect.

Changed connect timeout.
  • Loading branch information...
commit 3cdddfd06a94b369f85dff267cb1a67b4c2ccd98 1 parent 3fa8a3e
microp11 microp11 authored
Showing with 10 additions and 3 deletions.
  1. +2 −2 irc.js
  2. +8 −1 public/js/tcp-client.js
4 irc.js
View
@@ -68,7 +68,7 @@ app.get("/", function (req, res, next) {
res.render("./public/index.html");
});
-app.listen(process.env.C9_PORT || process.env['app_port'] || 80);
+app.listen(process.env.C9_PORT || process.env['app_port'] || 16960);
console.log("IRC#nodester is running on port %d in %s mode", app.address().port, app.settings.env);
/*
@@ -138,7 +138,7 @@ var appProcessor = function (action, client, msg, socket) {
}
break;
case "disconnect":
- socket.write("QUIT :Web user 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) {
Please sign in to comment.
Something went wrong with that request. Please try again.