3 ms·
I've written a lot of PHP, and while I can think of a number of ways you might use PHP to provide the backend for websocket-like communication (writing a long-r
by wwweston 13y ago
I've written a lot of PHP, and while I can think of a number of ways you might use PHP to provide the backend for websocket-like communication (writing a long-running server, using multipart responses, adaptive polling), it seems pretty fair to me to say this isn't the place where PHP is strongest out of the box. Particularly compared to nodejs.
If you know of a PHP runtime-host, library, or even just a development approach that makes supporting it as easy as nodejs, though, I'm all ears.
- meritt 13y agohttp://reactphp.org/ http://reactphp.org/ ( more specifically http://socketo.me/ http://socketo.me/ ) work very well for actually implementing websockets. It's fast and incredibly easy. Igor (https://github.com/igorw https://github.com/igorw) is a really talented guy.