arnetn-internetcheck
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

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");
}

Readme

Keywords

none

Package Sidebar

Install

npm i arnetn-internetcheck

Weekly Downloads

0

Version

0.0.4

License

none

Unpacked Size

11.7 kB

Total Files

11

Last publish

Collaborators

  • arnetn