PHPackages                             ekstazi/websocket-stream-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. ekstazi/websocket-stream-client

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

ekstazi/websocket-stream-client
===============================

Async WebSocket stream client interface for Amp based on different implementations.

2.0(6y ago)0142MITPHPPHP &gt;=7.2

Since Apr 5Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Ekstazi/websocket-stream-client)[ Packagist](https://packagist.org/packages/ekstazi/websocket-stream-client)[ RSS](/packages/ekstazi-websocket-stream-client/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (5)Versions (4)Used By (2)

websocket-stream-client
=======================

[](#websocket-stream-client)

Websocket stream client is set of interfaces that provide amphp stream like inrerface for different websocket clients

Interfaces
==========

[](#interfaces)

Two interfaces provided

`interface ConnectionFactory`
-----------------------------

[](#interface-connectionfactory)

### Methods

[](#methods)

#### `connect(RequestInterface $request, string $mode = self::MODE_BINARY): Promise`

[](#connectrequestinterface-request-string-mode--selfmode_binary-promisestream)

Return promise with stream connected to websocket provided by request. Mode is mode used for sending websocket frames

`interface Connection extends ekstazi\websocket\common\Connection`
------------------------------------------------------------------

[](#interface-connection-extends-ekstaziwebsocketcommonconnection)

For more details see [`ekstazi/websocket-common`](https://github.com/Ekstazi/websocket-common/)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~2 days

Total

3

Last Release

2221d ago

Major Versions

1.1 → 2.02020-04-09

### Community

Maintainers

![](https://www.gravatar.com/avatar/a08d5fa71cb89d140c2e3493261de61b2c215a13eef0e21f21727a38f7a10361?d=identicon)[Ekstazi](/maintainers/Ekstazi)

---

Top Contributors

[![Ekstazi](https://avatars.githubusercontent.com/u/992738?v=4)](https://github.com/Ekstazi "Ekstazi (4 commits)")

---

Tags

httpstreamasyncnon-blockingclientwebsocketampamphp

### Embed Badge

![Health badge](/badges/ekstazi-websocket-stream-client/health.svg)

```
[![Health](https://phpackages.com/badges/ekstazi-websocket-stream-client/health.svg)](https://phpackages.com/packages/ekstazi-websocket-stream-client)
```

###  Alternatives

[amphp/websocket-client

Async WebSocket client for PHP based on Amp.

1613.0M39](/packages/amphp-websocket-client)[amphp/http-server

A non-blocking HTTP application server for PHP based on Amp.

1.3k4.5M81](/packages/amphp-http-server)[amphp/http-client

An advanced async HTTP client library for PHP, enabling efficient, non-blocking, and concurrent requests and responses.

7286.8M137](/packages/amphp-http-client)[amphp/websocket

Shared code for websocket servers and clients.

453.1M9](/packages/amphp-websocket)[swow/swow

Coroutine-based multi-platform support engine with a focus on concurrent I/O

1.3k2.1M84](/packages/swow-swow)[amphp/byte-stream

A stream abstraction to make working with non-blocking I/O simple.

392116.2M104](/packages/amphp-byte-stream)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
