arnetn-internetcheck
v0.0.4
Published
Tests internet connection by downloading a 1x1 pixel gif file from provided URL.
Downloads
3
Readme
Description
Tests internet connection by downloading a 1x1 pixel gif file from provided URL.
How to use
A URL to a gif file is needed, for example a 1x1 pixel file (https://[server]/onePixel.gif).
import { InternetCheck } from 'arnetn-internetcheck';
new InternetCheck("https://[server]/onePixel.gif", this.connectionSuccess.bind(this), this.connectionError.bind(this));
connectionSuccess(){
console.log("connectionSuccess");
}
connectionError(){
console.log("connectionError");
}