Websocket is used in the project. It is estimated that the concurrency will not be high. It can support more than a hundred people. It should be easy to implement with node, but I would like to try it with php, now the problem is that after opening a page, the second one cannot be connected, and the server clearly shows a new connection, but the customer... websocket is used in the project. It is estimated that the concurrency will not be very high. It can support hundreds of people,
It should be easy to implement with node, but I want to try it with php,
The problem now is that after opening a page, the second one cannot be connected. The server clearly shows a new connection, but the client has no response and is not very familiar with the socket part, which of the following can help you.
Here is a related article
Here are the server code and test address respectively.
============
I seem to know why. The disConnect method does not reset $ handshake. After the change, I open several more browsers and the connection status is usually 3. Why?
Reply content:
Websocket is used in the project. It is estimated that the concurrency will not be very high. It can support hundreds of people,
It should be easy to implement with node, but I want to try it with php,
The problem now is that after opening a page, the second one cannot be connected. The server clearly shows a new connection, but the client has no response and is not very familiar with the socket part, which of the following can help you.
Here is a related article
Here are the server code and test address respectively.
============
I seem to know why. The disConnect method does not reset $ handshake. After the change, I open several more browsers and the connection status is usually 3. Why?
The modified server code has been fixed.