Execute a Ratchet websocket after initial response

30 views
Skip to first unread message

Daryl Wood

unread,
Nov 29, 2024, 9:46:50 AM11/29/24
to Ratchet
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.

Daryl Wood

unread,
Nov 29, 2024, 4:45:02 PM11/29/24
to Ratchet
Never mind responding, I figured it out.
Reply all
Reply to author
Forward
0 new messages