UncleGedd commented on issue #50:
URL: 
https://github.com/apache/incubator-flagon-useralejs/issues/50#issuecomment-808762700


   Regarding the Websockets option, does this mean we would need to maintain 
the logs queue server-side as well? That way, whenever the connection is 
lost/interrupted, the server has a way of knowing what logs to flush?
   
   I'd like to spike on the web worker/service worker option a bit (will work 
on it tomorrow). The goal wouldn't be for the web worker to listen to 
additional events, but rather use the `visibilitychange ` event in the main 
browser thread to perform a 
[postMessage](https://developer.mozilla.org/en-US/docs/Web/API/Worker/postMessage)
 and have the worker perform the HTTP request. My assumption is that the worker 
will be able to perform the request in a more reliable way than `sendBeacon`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to