commit
4469c78f01
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user