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

1998 - Added a ping interval on the client to ensure authenticated users stay authenticated #2320

Merged
merged 4 commits into from
Jul 27, 2013

Conversation

NTaylorMullen
Copy link
Contributor

@@ -328,6 +343,7 @@
/// <param name="callback" type="Function">A callback function to execute when the connection has started</param>
var connection = this,
config = {
pingInterval: 300,
Copy link
Member

Choose a reason for hiding this comment

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

Aren't JS time spans always in milliseconds? 😄

…t expire when there's lack of activity.

- This also involved adding a new configuration option 'pingInterval' which can be set via seconds
…ent configuration options in addition to multiple connection starts and stops.
- Changing an error message to not be prefixed with "SignalR:" and adding a log for it.
- Added a failsafe to the ping server common utility so that if there is no transport defined we instantly reject the deferred (essentially nooping).
- Removed the connection stop from a ping interval fail.
- Modified the ping interval fail to use the new js error resources.
- Removed the test that ensured that a failed ping interval would stop the connection.

Updated errors to be signalr transport errors.

Flowed the ping server fail to the connection error
@NTaylorMullen NTaylorMullen merged commit 0611a58 into release Jul 27, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants