Skip to content

Commit

Permalink
Decrease ping and pong intervals
Browse files Browse the repository at this point in the history
  • Loading branch information
martenrichter committed Nov 30, 2024
1 parent 3a96700 commit 965ed5a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ const initServer = async () => {
cors: cors,
path: '/notes.io',
serveClient: false,
transports: ['websocket']
transports: ['websocket'],
pingInterval: 5000,
pingTimeout: 3000
})
const notepadio = ioIns.of('/notepads')
const screenio = ioIns.of('/screens')
Expand Down

0 comments on commit 965ed5a

Please sign in to comment.