Skip to content
Discussion options

You must be logged in to vote

@alexander-torosh as described in this issue #286 (comment) the idleTimeout number rounds to the nearest 4 seconds, so setting idleTimeout to anywhere from 2 and less than 6 rounds to 4. Anywhere from 6 to less than 10 rounds to 8, etc. If the client is idle anywhere from that number and 4 less than that number it could trigger the close event. So idleTimeout of 4 is bad because any client idle time between 0 and 4 could trigger the close event so it closes immediately. You need at least idleTimeout of 8 to work, where any idle client time from 4 to 8 seconds could trigger the close event. In that case you want to send Ping messages at least every 3 seconds. I use idleTimeout of 16, which…

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #396 on December 09, 2020 03:23.