-
-
Notifications
You must be signed in to change notification settings - Fork 193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Triggering :chsk/uidport-close event only 5 seconds after a WebSocket channel is closed #414
Comments
@khmelevskii Hi Yurii. No, currently this isn't configurable. Should be easy to make this configurable here, PR welcome. Would suggest this value be separately configurable for WebSockets and Ajax, both defaulting to 5000 msecs: e.g. Just curious - what's your motivation in wanting a shorter timeout here? |
@ptaoussanis great, I will create PR. About motivation. In my app I have user online/offline status on UI. To show this I'm using |
So that's a typical use case, but what's your motivation for reducing the timeout specifically? Note that there's tradeoffs with a lower timeout - you'll get more false-positive |
I think this is totally fine to be more noisy here. For example I can see that status in Slack updates immediately (when user refresh slack page I can see that his status blink). |
Great, thanks for the confirmation. PR welcome 👍 |
Closing, this will be included in forthcoming v1.18 👍 |
Can I configure this 5 second? For example I'm going to use 1500ms. In case that I will be able to change this value it will influence to something?
The text was updated successfully, but these errors were encountered: