A simple and efficient library implemented HTML5's server-sent events by PHP, is used to real-time push events from server to client, and easier than Websocket, instead of AJAX request.
-
Updated
Mar 4, 2021 - PHP
A simple and efficient library implemented HTML5's server-sent events by PHP, is used to real-time push events from server to client, and easier than Websocket, instead of AJAX request.
不使用任何框架,php + html + css + js 原生实现 openai gpt chat 接口对接,实现流式数据传输和接收,附带简洁网页demo。
The Hoa\Eventsource library.
A simple EventSource / SSE (Server-Sent Events) client for PHP.
Add a description, image, and links to the eventsource topic page so that developers can more easily learn about it.
To associate your repository with the eventsource topic, visit your repo's landing page and select "manage topics."