ekstazi/websocket-stream-client

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

2.0 2020-04-09 09:50 UTC

This package is auto-updated.

Last update: 2024-10-09 20:02:52 UTC


README

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

Interfaces

Two interfaces provided

interface ConnectionFactory

Methods

connect(RequestInterface $request, string $mode = self::MODE_BINARY): Promise<Stream>

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

For more details see ekstazi/websocket-common