Comments (3)
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.
from sockjs-client.
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."
from sockjs-client.
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).
from sockjs-client.
Related Issues (20)
- SyntaxError: The URL's scheme must be either 'http:' or 'https:'. 'wss:' is not allowed. HOT 2
- questions under the micro-front-end architecture
- APIs returning 401 'unauthorised' while handshaking HOT 4
- Sockjs Connection getting 401 error , info endpoint HOT 1
- Move to Github actions CI
- modifying document.domain no longer supported HOT 1
- SockJS Client in React doesn't subscribe to the 'initial/queue' and one other topic HOT 4
- Angular Warning: "CommonJS or AMD dependencies can cause optimization bailouts. HOT 1
- Cannot read properties of null (reading 'transportName')
- Does the library support IPv6 address with zone id
- failed: WebSocket is closed before the connection is established.
- Unable to detect Chromium based browsers HOT 1
- React Vite + SockJS Client All transports failed HOT 1
- Connecting from an HTTPS website to a 'localhost' url doesn't work
- Google Chrome says "Deprecated feature used" in Issues tab HOT 2
- Vulnerability issue on Math.random() - Fortify Priority: High
- Vulnerability issue on Empty passwords - Fortify Priority: High HOT 2
- sockjs-client uses deprecated "unload" listener HOT 1
- Disable console log for fetch HOT 1
- Remove me HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sockjs-client.