File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ exports.connect = function(server){
27
27
28
28
io . on ( 'connection' , function ( socket ) {
29
29
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 ( ) ) ;
31
31
//Get User
32
32
socket . on ( 'getUser' , function ( data ) {
33
33
console . log ( 'socket.io: call getUser' ) ;
@@ -46,15 +46,15 @@ exports.connect = function(server){
46
46
// Logout
47
47
socket . on ( 'logout' , function ( token ) {
48
48
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 ( ) ) ;
50
50
51
51
} ) ;
52
52
53
53
54
54
55
55
socket . on ( 'disconnect' , function ( ) {
56
56
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 ( ) ) ;
58
58
59
59
60
60
} ) ;
You can’t perform that action at this time.
0 commit comments