Permalink
Browse files

initialize watchmaker, but disconnect real fast

  • Loading branch information...
1 parent f0d4756 commit 0dcae6e3e98758ff4f9a916b2b8a54c0219ce85b Visnu Pitiyanuvath committed Nov 16, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 public/javascripts/watchmaker.js
@@ -1,7 +1,5 @@
var nko = {};
(function(nko) {
- return;
-
//// Vector
nko.Vector = function(x, y) {
if (typeof(x) === 'undefined') return
@@ -300,6 +298,9 @@ var nko = {};
var ws = nko.ws = io.connect(null, {
'port': '#socketIoPort#'
});
+ setTimeout(function() {
+ ws.disconnect();
+ }, 5000);
ws.on('connect', function() {
me.id = ws.socket.sessionid;
nko.dudes[me.id] = me;

0 comments on commit 0dcae6e

Please sign in to comment.