Merge pull request #13 from cubedro/develop

more refactoring
This commit is contained in:
Marian OANCΞA 2015-03-04 23:32:20 +02:00
commit 4469c78f01

View File

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