zeus/socket_talk

this library provides talks with the web sockets

Installs: 2

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/zeus/socket_talk

v1.0.0 2025-03-28 05:40 UTC

This package is auto-updated.

Last update: 2025-09-29 03:30:33 UTC


README

Talk with the web socket

This package provides communication with wss and ws protocols.

to install

composer require zeus/socket_talk

using

require_once 'vendor/autoload.php';

$webSocket=new \Zeus\SocketTalk\WebSocket('wss://echo.websocket.org');

$webSocket->connect();
//$webSocket->isConnected();
$webSocket->send(json_encode(['type'=>'ping']));
echo $webSocket->read();
//$webSocket->disconnect();