Socket ip
This commit is contained in:
parent
96c2d2b20a
commit
af008e53e4
|
@ -44,7 +44,7 @@ Log.socket = {};
|
||||||
Log.socket.connection = function(socket) {
|
Log.socket.connection = function(socket) {
|
||||||
log(
|
log(
|
||||||
'[SOK] ' + new Date() + ' ' +
|
'[SOK] ' + new Date() + ' ' +
|
||||||
socket.handshake.address + ' connection',
|
socket.request.connection._peername.address + ' connection',
|
||||||
Colors.MAGENTA
|
Colors.MAGENTA
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -52,7 +52,7 @@ Log.socket.connection = function(socket) {
|
||||||
Log.socket.disconnect = function(socket) {
|
Log.socket.disconnect = function(socket) {
|
||||||
log(
|
log(
|
||||||
'[SOK] ' + new Date() + ' ' +
|
'[SOK] ' + new Date() + ' ' +
|
||||||
socket.handshake.address + ' disconnect',
|
socket.request.connection._peername.address + ' disconnect',
|
||||||
Colors.MAGENTA
|
Colors.MAGENTA
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue