Download the PHP package ez-php/websocket-client without Composer
On this page you can find all versions of the php package ez-php/websocket-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download ez-php/websocket-client
More information about ez-php/websocket-client
Files in ez-php/websocket-client
Download ez-php/websocket-client
More information about ez-php/websocket-client
Files in ez-php/websocket-client
Vendor ez-php
Package websocket-client
Short Description RFC 6455 WebSocket client for ez-php — HTTP upgrade handshake, masked frame encoder, plain-TCP and TLS (wss://) transports.
License MIT
Homepage https://github.com/ez-php/websocket-client
Package websocket-client
Short Description RFC 6455 WebSocket client for ez-php — HTTP upgrade handshake, masked frame encoder, plain-TCP and TLS (wss://) transports.
License MIT
Homepage https://github.com/ez-php/websocket-client
Please rate this library. Is it a good library?
Informations about the package websocket-client
ez-php/websocket-client
RFC 6455 WebSocket client for PHP 8.5 — HTTP upgrade handshake, masked frames, plain TCP (ws://) and TLS (wss://). Reuses the frame parser and opcodes of ez-php/websocket; no framework dependency.
Installation
Requires PHP 8.5 and ext-openssl.
Usage
receive()answers server pings, reassembles fragmented messages, and returns the server'sCLOSEas aMessage(isClose(),closeCode(),closeReason()).- Protocol violations by the server close the connection with the proper status code and throw
ConnectionException. A refused upgrade throwsEzPhp\WebSocket\HandshakeException. wss://verifies the certificate and host name by default. Override viaClient::connect(..., sslOptions: ['cafile' => '/path/ca.pem']).- Subprotocols:
Client::connect($url, protocols: ['chat']), then$client->subprotocol(). - The API is blocking and one instance serves one connection.
License
MIT
All versions of websocket-client with dependencies
PHP Build Version
Package Version
The package ez-php/websocket-client contains the following files
Loading the files please wait ...