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
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();