Skip to content
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

RTN23 #660

Merged
merged 1 commit into from
Dec 12, 2017
Merged

RTN23 #660

merged 1 commit into from
Dec 12, 2017

Conversation

ricardopereira
Copy link
Contributor

@SimonWoolf
Copy link
Member

👍 Looks good. (One thought: could maybe have a quick test that client.maxIdleInterval is 15 for the simulated connection which sets it to 15000 in the connectionDetails, to check that it's being converted from milliseconds to seconds).

FWIW: The approach you've gone with here is what I did in ably-js at first. I later changed it to one that just records the last activity time (and only sets a new timer at most every 15s) after Paddy noted that the initial way was quite expensive. The new way gives the additional advantage that you can use the lastActivity time for the connection state freshness check in #645 . Not saying you need to change approach to that now -- for the moment, better to get this out as-is -- but something to keep in mind as a possibility when you implement #645 .

Copy link
Member

@mattheworiordan mattheworiordan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants