Checking Internet connection

Establish a /heartbeat endpoint or something in your backend that just always returns 200 OK.

this._http.get('/heartbeat').subscribe(() => {
    // yep, good to go
  }, (err) => {
    // ruh roh
  });
4 Likes