Skip to content

diloabininyeri/socket_talk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Communication with web socket using php

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages