I would like to make an application that runs a different site inside my domain, and routes all traffic through a middleman server which then sends the traffic to the intended target. However, I am struggling to find a way to catch all traffic from the site. The best solution I could find uses service workers to capture all HTTP requests (requests made using the Fetch API) with FetchEvent, but that doesn’t include stuff like transmissions along a WebSocket. Is there anything I’m missing or doing wrong?
Thanks!
PointlessCircle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.