Hullo JS
Github
Chat
Searchβ¦
Hullo JS
Hullo π
Hullo π core
Intro to Core
API
Hullo π browser
Intro to Browser
API
interconnect
fetch
geolocation
ofFrames
ofHistory
ofMessagePort
ofWebSocket
onLine
pageVisibility
nextFrame
|> route
Hullo π DOM
Intro to DOM
Guide
API
Hullo π Node
Intro to Node
API
Powered By
GitBook
onLine
import { onLine } from '@hullo/browser'
An observable of boolean values where true is sent if browser reports working internet connection and false if it does not.
1
import
{
onLine
}
from
'@hullo/browser'
;
2
β
3
onLine
().
subscribe
({
4
next
(
online
)
{
5
console
.
log
(
online
?
"online"
:
"offline"
);
6
}
7
});
Copied!
Previous
ofWebSocket
Next
pageVisibility
Last modified
3yr ago
Copy link