zeus/socket_talk

this library provides talks with the web sockets

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

This package is auto-updated.

Last update: 2025-03-29 02:29:12 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();