remove engine.io

No need for homepage to show this stuff for now. Just more things that
can crash the tunnel server!
This commit is contained in:
Roman Shtylman
2014-10-25 17:09:13 -07:00
parent 4a09dc114a
commit 73ec1865ab
4 changed files with 0 additions and 69 deletions

View File

@@ -1,27 +1 @@
var eio = require('engine.io-client');
var flipCounter = require('flip-counter');
var user_counter = new flipCounter('user-count', {
value: 0,
pace: 10,
fW: 30,
tFH: 20,
bFH: 40,
bOffset: 200,
auto: false
});
var socket = eio();
socket.on('open', function () {});
socket.on('message', function (data) {
var msg = JSON.parse(data);
user_counter.incrementTo(msg.tunnels);
});
socket.on('close', function () {
user_counter.incrementTo(0);
});
// load google analytics after above starts
require('./ga');