At present, there is a need to connect to the socket. io server of the other party, then receive and store the data. However, no connection code is found for the socket. io client of the php version. Only the connection code of the server is found. Therefore, a client connection code is obtained here. I am grateful for the fact that there is such a requirement at hand, that is, to connect to the socket. io server of the other party, and then receive and store the data into the database.
However, no connection code is found for the socket. io client of the php version. Only the connection code of the server is found. Therefore, a client connection code is obtained here.
Grateful
Reply content:
At present, there is a need to connect to the socket. io server of the other party, then receive and store the data.
However, no connection code is found for the socket. io client of the php version. Only the connection code of the server is found. Therefore, a client connection code is obtained here.
Grateful
Https://github.com/rase-/socket.io-php-emitter
Https://github.com/walkor/phpsocket.io
Check if you need it.