UncleGedd commented on issue #50: URL: https://github.com/apache/incubator-flagon-useralejs/issues/50#issuecomment-808895462
I spiked on the web worker option today and had good results. I listened for the `visibilitychange` event to fire `postMessage`, and the web worker was able to consistently perform the HTTP requests before the document fully closed. Understood that this may not work on all browsers and will require more testing. However, I think this is a clean approach that doesn't require anything extra on the backend (and optimizes a bit on the client side). Regarding websockets, I'm not sure where we would write the websocket server. It looks like the ELK stack only has support for [clients](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-websocket.html) -- 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