Implements Network Information API, which enables web applications to access information about the network connection in use by the device.

[ This description is mirrored from README.md at github.com/jorgecasar/network-information on 2019-05-22 ]

Published on webcomponents.org

<network-information>

Implements Network Information API, which enables web applications to access information about the network connection in use by the device.

Installation

First, make sure you have the Polymer CLI installed. Then run polymer serve to serve your element locally.

Viewing Your Element

$ polymer serve

Running Tests

$ polymer test

Your application is already set up to be tested via web-component-tester. Run polymer test to run your application's test suite locally.

Usage

<dom-bind>
  <template>
    <network-information
      api-supported="{{apiSupported}}"
      on-line="{{onLine}}"
      type="{{type}}"
      effective-type="{{effectiveType}}"
      downlink-max="{{downlinkMax}}"
      downlink="{{downlink}}"
      rtt="{{rtt}}">
    </network-information>
    <ul>
      <li>API supported: [[apiSupported]]</li>
      <li>OnLine: [[onLine]]</li>
      <li>Type: [[type]]</li>
      <li>Efective type: [[effectiveType]]</li>
      <li>Downlink Max: [[downlinkMax]]</li>
      <li>Downlink: [[downlink]]</li>
      <li>Rtt: [[rtt]]</li>
    </ul>
  </template>
</dom-bind>

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Credits

Spec. Network Information API.

License

MIT is open-sourced software licensed under the MIT license.

Install

Link to this version
ImportedReleased 19 June 2017MIT License
Framework Support
Polymer 2.0+
Browser Compatibility
Install with
bower install --save jorgecasar/network-information"#1.0.0"
Run the above Bower command in your project folder. If you have any issues installing, please contact the author.
Release notes - Version 1.0.0

Dependencies

  • polymer#Polymer/polymer#^2.0.0