Skip to content

Commit 965ed5a

Browse files
committed
Decrease ping and pong intervals
1 parent 3a96700 commit 965ed5a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/server.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@ const initServer = async () => {
114114
cors: cors,
115115
path: '/notes.io',
116116
serveClient: false,
117-
transports: ['websocket']
117+
transports: ['websocket'],
118+
pingInterval: 5000,
119+
pingTimeout: 3000
118120
})
119121
const notepadio = ioIns.of('/notepads')
120122
const screenio = ioIns.of('/screens')

0 commit comments

Comments
 (0)