Skip to main content
added 7 characters in body
Source Link
Doc Brown
  • 220.6k
  • 35
  • 410
  • 625

I'm trying to implement a heartbeat feature for offline tracking that just sends an offline message to the server once the web browser app (Laravel-based) is offline. Ideally it will ping the app's URL every x seconds and then push an offline message to the remote MySQL database if the response fails.

Q'sThe question I have in mind areis:

  1. Should I use the pinging logic from client-side or there's a way to do it server-side.
  • Should I use the pinging logic from client-side or there's a way to do it server-side.

I'm trying to implement a heartbeat feature for offline tracking that just sends an offline message to the server once the web browser app (Laravel-based) is offline. Ideally it will ping the app's URL every x seconds and then push an offline message to the remote MySQL database if the response fails.

Q's I have in mind are:

  1. Should I use the pinging logic from client-side or there's a way to do it server-side.

I'm trying to implement a heartbeat feature for offline tracking that just sends an offline message to the server once the web browser app (Laravel-based) is offline. Ideally it will ping the app's URL every x seconds and then push an offline message to the remote MySQL database if the response fails.

The question I have in mind is:

  • Should I use the pinging logic from client-side or there's a way to do it server-side.
Question Protected by gnat
deleted 107 characters in body
Source Link

I'm trying to implement a heartbeat feature for offline tracking that just sends an offline message to the server once the web browser app (Laravel-based) is offline. Ideally it will ping the app's URL every x seconds and then push an offline message to the remote MySQL database if the response fails.

Q's I have in mind are:

  1. Should I use the pinging logic from client-side or there's a way to do it server-side.
  2. Are there any Laravel libraries or packages that I can use that will be useful for the heartbeat system?

I'm trying to implement a heartbeat feature for offline tracking that just sends an offline message to the server once the web browser app (Laravel-based) is offline. Ideally it will ping the app's URL every x seconds and then push an offline message to the remote MySQL database if the response fails.

Q's I have in mind are:

  1. Should I use the pinging logic from client-side or there's a way to do it server-side.
  2. Are there any Laravel libraries or packages that I can use that will be useful for the heartbeat system?

I'm trying to implement a heartbeat feature for offline tracking that just sends an offline message to the server once the web browser app (Laravel-based) is offline. Ideally it will ping the app's URL every x seconds and then push an offline message to the remote MySQL database if the response fails.

Q's I have in mind are:

  1. Should I use the pinging logic from client-side or there's a way to do it server-side.
Source Link

Best Practices for Implementing a Heartbeat Feature in a Laravel App to Track Offline Status

I'm trying to implement a heartbeat feature for offline tracking that just sends an offline message to the server once the web browser app (Laravel-based) is offline. Ideally it will ping the app's URL every x seconds and then push an offline message to the remote MySQL database if the response fails.

Q's I have in mind are:

  1. Should I use the pinging logic from client-side or there's a way to do it server-side.
  2. Are there any Laravel libraries or packages that I can use that will be useful for the heartbeat system?