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

Options for fallbacks? #39

Closed
hunterloftis opened this issue Jan 11, 2012 · 3 comments
Closed

Options for fallbacks? #39

hunterloftis opened this issue Jan 11, 2012 · 3 comments

Comments

@hunterloftis
Copy link

For example, to set the polling frequency.

@majek
Copy link
Member

majek commented Jan 11, 2012

There isn't anything like 'polling frequency'. Polling transports do a trick called "long polling", which means that the polling request hangs and waits for data (a single call can hang at most until a heartbeat - 25 seconds by default).

All other options are defined in the README.

@hunterloftis
Copy link
Author

I'm talking about this specifically:

"Polling transport

SockJS supports few good-old polling protocols for ancient browsers (including IE7). Unfortunately these techniques are quite slow, but there is not much that can done about it.

Polling transports can also be used in situations where proxy on the client side doesn't support WebSockets nor http chunking - it is required for the streaming protocols."

@majek
Copy link
Member

majek commented Jan 11, 2012

This still holds true. We'll do long polling using JSONP and it can hang for anything from 0 seconds (when data is already buffered and available on the server side immediately) to 25 seconds (when heartbeat will be fired and will force the polling request to be re-issued).

@majek majek closed this as completed Jan 13, 2012
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

No branches or pull requests

2 participants