Implements Network Information API, which enables web applications to access information about the network connection in use by the device.
First, make sure you have the Polymer CLI installed. Then run polymer serve
to serve your element locally.
$ polymer serve
$ 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.
<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>
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Spec. Network Information API.
MIT is open-sourced software licensed under the MIT license.