Skip to content

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

Notifications You must be signed in to change notification settings

jorgecasar/network-information

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages