Okay, so I want to continue with setting up a websocket after a response is sent. Just starting to think this through, so any help is appreciated.
Here's the execution flow:
1. Request
2. Response and paint result
3. Continue with a thread to initialize a websocket
4. Listen for server-side messages, and post them via the websocket
5. Update the browser DOM with the message.
I've to the request/response down, and the Javascript listener setup. I just need to figure out how to continue with a new PHP thread after the response is sent.