Skip to content

Commit 9ada7bd

Browse files
committed
1.0.0
1 parent 110745d commit 9ada7bd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/mainSocketLocalToken.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ exports.connect = function(server){
2727

2828
io.on('connection', function (socket) {
2929

30-
console.log('socket.io: new connection, current number of connections:',NumberOfConnections());
30+
console.log('socket.io: new connection, current number of authorized connections:',NumberOfConnections());
3131
//Get User
3232
socket.on('getUser', function (data) {
3333
console.log('socket.io: call getUser');
@@ -46,15 +46,15 @@ exports.connect = function(server){
4646
// Logout
4747
socket.on('logout', function (token) {
4848
clients[socket.id] && delete clients[socket.id];
49-
console.log('close connection, number of connections:',NumberOfConnections());
49+
console.log('close connection, number of authorized connections:',NumberOfConnections());
5050

5151
});
5252

5353

5454

5555
socket.on('disconnect', function () {
5656
clients[socket.id] && delete clients[socket.id];
57-
console.log('close connection, number of connections:',NumberOfConnections());
57+
console.log('close connection, number of authorized connections:',NumberOfConnections());
5858

5959

6060
});

0 commit comments

Comments
 (0)