Code Monkey home page Code Monkey logo

Comments (2)

igrigorik avatar igrigorik commented on July 21, 2024

Copying related questions from blink-dev thread...

In the code it looks like downlink, rtt and effectiveType all fall back to other values when "not observing," e.g. rtt will be 0. In practice, would this happen every time the phone has been turned off for 5 minutes, or in some much rarer circumstance?

It seems reasonable to have this fallback, so that users of the API can just use the values and have things work well enough. Absent any randomization, it will mean that it's possible to tell when the device hasn't been recently active at all, is that worth spelling out in https://wicg.github.io/netinfo/#privacy-considerations?

@tarunban @bengreenstein would love to hear your thoughts and experience on this one..

from netinfo.

tarunban avatar tarunban commented on July 21, 2024

Yes, the renderer returns 0 as the RTT estimate when a value is not available from the network state notifier in Blink. However, this is an artifact of implementation, and in practice, by the time the JS API is called, a non-zero estimate would be available. https://bugs.chromium.org/p/chromium/issues/detail?id=728771 has more details.

from netinfo.

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.