After the normal communication of the TCP persistent connection is successful, how does the PHP server call the returned data?

how does the PHP server call the returned data after the normal communication of the TCP persistent connection is successful?

I have a car networking project, and now I can communicate with each car normally through gatwaywork. But now you can"t just communicate between gatwaywork and the car. Now you also need to set up a php server. When you want to use the car, you can call the interface of the php server, send messages to each car, and then display it on the page through the php server after receiving the feedback from the car. I saw that the official website http://doc2.workerman.net/wor. communicates through WebSocket, but the car and gatwaywork communicate through TCP, so the protocol cannot be changed. Later, I thought of using GatewayClient as a client to connect to the server, and the messages of all cars were sent to GatewayClient, but the official prompt was "GatewayClient cannot receive the data sent by the client."

can anyone help me with some ideas and solutions?


GatewayWorker supports multiple protocols. You can add a port of websocket protocol. The original tcp port of GatewayWorker maintains communication with the vehicle, and the web page maintains communication with the GatewayWorker through the websocket port. After the vehicle sends data, if necessary, send the data to the browser through the websocket port for real-time display.


walkor has given a solution. In fact, there is another way of low, which GatewayClient cannot accept, but php can, ah, the message CURL is sent to php, when calling GatewayClient or if it is transferred.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1beb86d-307cd.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1beb86d-307cd.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?