Ratchet - PHP的Websockets開發包
Ratchet是一個基于 PHP的 WebSockets開發包。連接可以保持打開,然后客戶端和服務器都可以相互推送消息,適合于開發實時應用程序。
它包含了多個組件:
- 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) </ul>
Ratchet擁有良好的文檔和漂亮聊天的示例。
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!