Commit 965d6605 authored by Leo Iannacone's avatar Leo Iannacone

export Client as class

parent 927ca682
......@@ -9,8 +9,8 @@ var express = require('express')
, path = require('path')
, Tail = require('tail').Tail
, config = require('./lib/config.js')
, client = require('./lib/client.js')
, utils = require('./lib/utils.js')
, Client = require('./lib/client.js')
var app = module.exports = express.createServer();
var io = require('socket.io').listen(app);
......@@ -46,7 +46,7 @@ app.get(config.routes.distribution, routes.distribution)
io.sockets.on('connection', function(socket) {
utils.send_distributions(socket)
socket.emit('status', status)
client(socket)
client = new Client(socket)
});
io.sockets.on('disconnect', function(socket){
......
......@@ -84,7 +84,7 @@ function __handler_get_file (socket, data) {
__send_file(events.file.set, socket, data)
}
Client = function (socket) {
function Client (socket) {
events = config.events.client
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment