Skip to content

Commit 9f2d79a

Browse files
committed
Decrease ping and pong intervals
1 parent c9d6144 commit 9f2d79a

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
@@ -125,7 +125,9 @@ const initServer = async () => {
125125
cors: cors,
126126
path: '/notepad.io',
127127
serveClient: false,
128-
transports: ['websocket']
128+
transports: ['websocket'],
129+
pingInterval: 5000,
130+
pingTimeout: 3000
129131
})
130132

131133
const notepadio = ioIns.of('/notepads')

0 commit comments

Comments
 (0)