Sign in
Log inSign up
Bibek Kakati

135 likes

824 reads

18 comments

Sai Ansul
Sai Ansul
May 18, 2021

This is amazing! Never seen anything like this before!馃挴馃檶

5
1 reply
Bibek Kakati
Bibek Kakati
Author
May 18, 2021

Thank you for your comment.

1
Ezequiel E. Tejada
Ezequiel E. Tejada
May 12, 2021

Thank you for sharing.

Let me add something that may be useful: caniuse.com/online-status

2
1 reply
Bibek Kakati
Bibek Kakati
Author
May 12, 2021

Thank you for adding that.

2
Ayodele Samuel Adebayo
Ayodele Samuel Adebayo
May 12, 2021

thanks a lot for sharing this, this is a +1 for me

1
1 reply
Bibek Kakati
Bibek Kakati
Author
May 12, 2021

I'm glad you liked it.

1
Kieran Roberts jkbasjkbfbjaksbfjbjasbfjbdsjkfb
Kieran Roberts jkbasjkbfbjaksbfjbjasbfjbdsjkfb

This is something I've never seen before Bibek Kakati. Nice article, keep it up :)

1
1 reply
Bibek Kakati
Bibek Kakati
Author
May 13, 2021

Thank you! 馃帀

1
Tomasz Gil
Tomasz Gil
May 12, 2021

Cool! I was wondering how apps like Google Docs does this. 馃 It seems that now I know! 馃憣

1
1 reply
Bibek Kakati
Bibek Kakati
Author
May 13, 2021

I'm happy to know that you learned something new. 馃帀

1
Victoria Lo
Victoria Lo
May 13, 2021

Wow I learned something new today! Thanks for sharing :)

1
1 reply
Bibek Kakati
Bibek Kakati
Author
May 13, 2021

Happy to know that 馃槉.

1
Catalin Pit
Catalin Pit
May 13, 2021

This is really cool!

1
1 reply
Bibek Kakati
Bibek Kakati
Author
May 13, 2021

Thank you.

1
Deactivated User
Deactivated User
Deactivated User
May 13, 2021

What about send a http request to google.com to test out status of internet connection, no question of false positive there?

1
1 reply
Bibek Kakati
Bibek Kakati
Author
May 13, 2021

Yeah, that is a normal workaround and you will get the current status but it can't replace the listener. To achieve the behavior of the listener, you will have to implement a polling mechanism.

1
Deactivated User
Deactivated User
Deactivated User
May 13, 2021

Nice. Thank you. Definitely gonna play with it. Always found it cool that Facebook was able to tell me that I have no internet connection before I even knew it 馃槀

1
1 reply
Bibek Kakati
Bibek Kakati
Author
May 13, 2021

You can use it on your next web project.

And thank you for your comment Andrei Terecoasa.

1