File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,8 +43,8 @@ function Server (config) {
4343 credentials : true
4444 } ,
4545 allowEIO3 : true ,
46- pingInterval : 120000 , // server → client ping every 2 mins //add
47- pingTimeout : 120000 // wait up to 2 mins for client pong //add
46+ pingInterval : 120000 , // server → client ping every 2 mins
47+ pingTimeout : 120000 // wait up to 2 mins for client pong
4848 } ) ;
4949
5050 server . on ( "connection" , ( socket ) => {
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ const MMSocket = function (moduleName) {
1414 }
1515 this . socket = io ( `/${ this . moduleName } ` , {
1616 path : `${ base } socket.io` ,
17- pingInterval : 120000 , // send pings every 2 mins // add
18- pingTimeout : 120000 // wait up to 2 mins for a pong // add
17+ pingInterval : 120000 , // send pings every 2 mins
18+ pingTimeout : 120000 // wait up to 2 mins for a pong
1919 } ) ;
2020
2121 let notificationCallback = function ( ) { } ;
You can’t perform that action at this time.
0 commit comments