Is there a way to pass JavaScript data to a PHP script without using Cookies or a POST request?

Well the title pretty much sums it up. I really have no idea where to start. I don’t have any code to share at this point in time

If it helps, the same data is also being piped through a WebSocket server, maybe we could read the WebSocket stream with PHP?