Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

lonelearner's avatar

Laravel or PHP WebSocket client

Here is the scenario:

Back-end Laravel application establishes a long-running connection (as a client) to an external WebSocket server.

It also receives data from users via HTTP GET request, which is then worked on and passed to the external server via the already established Websocket connection.

Also, when there is no activity within 30 secs, the app sends a ping to keep the websocket connection alive.

How do I go about this?

0 likes
0 replies

Please or to participate in this conversation.