3 ms·
Ratchet (http://socketo.me/ http://socketo.me/) has started to make this easier. Regardless of the naysaying people will always do about PHP and long-running p
by lux 14y ago
Ratchet (http://socketo.me/ http://socketo.me/) has started to make this easier.
Regardless of the naysaying people will always do about PHP and long-running processes, an Nginx WebSockets proxy/backend protocol would be a huge hit for PHP developers, and as demonstrated by Ratchet, can certainly be made to work just fine.
- jqueryin 14y agoI recently did a presentation on Ratchet with working demos. You can view all of the source code via the github repository: https://github.com/cballou/php-websockets-demos https://github.com/cballou/php-websockets-demos The three demos are of increasing complexity, with the third being a WTF example of adding WebSockets to an existing PHP application (in this case, a basic CRUD todo app).
- lux 14y agoCool, browsing through your demos now!
- trebor 14y agoRatchet does look nice, but has several deployment dependencies and architectural constraints. Hopefully with nginx now adding the features to be a WebSocket proxy you could get HAProxy out of the way (unless you wanted it).