PHPackages                             wheakerd/sse-client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. wheakerd/sse-client

ActiveLibrary[HTTP &amp; Networking](/categories/http)

wheakerd/sse-client
===================

SSE coroutine client based on swoole implementation, suitable for hyperf or super-kernel.

v1.0.0(8mo ago)00[1 issues](https://github.com/wheakerd/sse-client/issues)MITPHPPHP &gt;=8.3

Since Sep 3Pushed 8mo agoCompare

[ Source](https://github.com/wheakerd/sse-client)[ Packagist](https://packagist.org/packages/wheakerd/sse-client)[ RSS](/packages/wheakerd-sse-client/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Server Sent Event 协程客户端
=======================

[](#server-sent-event-协程客户端)

Wheakerd 提供了对 Server Sent Event Client 的封装，可基于 [wheakerd/sse-client](https://github.com/wheakerd/sse-client) 组件对 SSE (server sent event) 进行访问。

安装
--

[](#安装)

```
composer require wheakerd/sse-client
```

使用
--

[](#使用)

组件提供了一个 `Wheakerd\SseClient\Client` 来创建客户端，我们直接通过代码来演示一下：

```
