Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

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

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages