Websockets For PHP – Ratchet
26
Jun
// php the_time('Y') ?>
A common PHP-powered website is expected to run a script on the server, its content being rendered as HTML, the output is displayed and connection is closed
Using Ratchet, a WebSockets library for PHP, the connection stays open and both the client + server can push data to each other which is perfect for live-apps.
It consists of multiple components including:
- IoServer (the core to handle the events)
- WsServer (for communicating with W3C WebSocket API)
- SessionProvider (for handling the sessions)
- WampServer (provides the RPC and PubSub patterns)
- FlashPolicy (Flash fallback for unsupported browsers)
- IpBlackList (prevent any IPs from opening connections)
Ratchet is very well-documented and a nice chat demo exists which show its capabilities.
Requirements: PHP
Website: http://socketo.me/
Demo: http://socketo.me/demo
Download: https://github.com/cboden/Ratchet
Website: http://socketo.me/
Demo: http://socketo.me/demo
Download: https://github.com/cboden/Ratchet
- Tags:
Php WebSockets
- Filed under: Extras, Other License, Other Scripts/Apps.
- 2 Comments












2 Responses for "Websockets For PHP – Ratchet"
Very interesting project!
it’s very hard to get running and the documentation is useless…