If there are many connections, the WebSocket process can hang with 100% CPU usage. It happens because by default ReactPHP instantiates the event loop that uses file descriptors. Usually, the max number of file descriptors per process is relatively low (commonly 1024).
To fix the problem, you need to install ev PHP extension. With the extension installed, ReactPHP will instantiate another event loop implementation.
To fix the problem, you need to install ev PHP extension. With the extension installed, ReactPHP will instantiate another event loop implementation.