ekstazi / websocket-stream-client
Async WebSocket stream client interface for Amp based on different implementations.
2.0
2020-04-09 09:50 UTC
Requires
- php: >=7.2
- amphp/amp: ^2.2
- amphp/byte-stream: ^1
- ekstazi/websocket-common: ^2.0
- psr/http-message: ^1
Requires (Dev)
- amphp/php-cs-fixer-config: dev-master
Suggests
- ekstazi/websocket-stream-client-amphp: For amphp websocket-client stream implementation
- ekstazi/websocket-stream-client-implementation: For websocket client implementation
This package is auto-updated.
Last update: 2024-11-09 20:12:30 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