Coder Social home page Coder Social logo

Comments (3)

majek avatar majek commented on May 20, 2024

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.

hunterloftis avatar hunterloftis commented on May 20, 2024

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.

majek avatar majek commented on May 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.