Giter Site home page Giter Site logo

wiremonkey's People

Contributors

pyaesone avatar ryvan-js avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

wiremonkey's Issues

Suggestion: make integration with blockUI

I am using wiremonkey and I made some quick and dirty hack to use blockUI script so the screen gets locked when the connection is lost and unlocked when the connection is available again.

It would be nice to see this integration available in the plugin itself and would be good if the message was availble in the blockUI script itself.

Here is the reference link for blockUI: http://jquery.malsup.com/block/#overview

My attemption at the code is below, in the setInterval function:

if (!isOnline) {
    $.blockUI({
        ignoreIfBlocked: true,
        message: 'Sem conexão. Por favor aguarde...',
    });
} else {
    $.unblockUI();
}

navigator.onLine doesn't mean you have internet access

Hi,

This might be the edge case but the navigator.onLine could be true if it's in a private network without Internet access. This is really different from the legacy way you implemented with a Google image.

By the way, your Google image way is really helpful for me :D

Internet disconnection not detected

I tried this library.
Network connection break is detected immediately.
Internet connection break is not detected at all.
Works similar to navigator.onLine which has a similar behaviour.
“online” does not always mean connection to the internet, it can also just mean connection to some network.

Not working on firefox

I am trying to test your plugin (the demo web page) on firefox but it is not working.
Any idea why?
version 58.0.1 (64 bits), linux

Callback Handler for connected and disconnected event?

I want to add some callback handler for connected and disconnected event just like as the following.

WireMonkey.on('connected', function(){
  console.log('Your connection is alived.');
});
WireMonkey.on('disconnected', function(){
  console.log('You are disconnected from internet.');
});

Is there any way to hook handler?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.