more refactoring

This commit is contained in:
cubedro 2015-03-04 23:31:59 +02:00
parent 28c5e00a99
commit 9714d6fe7a

View File

@ -78,6 +78,7 @@ function Node()
socket.on('open', function open() {
socket.emit('hello', { id: self.id, info: self.info, secret: WS_SECRET });
console.log('The connection has been opened.');
console.log('Trying to login');
}).on('end', function end() {
self._socket = false;
}).on('error', function error(err) {