dev-master
9999999-devSend events and receive socket.io PHP client
MIT
The Requires
- php >=5.4
- monolog/monolog 1.*
The Development Requires
by Yuuki Takezawa
websocket socket.io
Wallogit.com
2017 © Pedro Peláez
Send events and receive socket.io PHP client
MIT Licenced, (*1)
"require": {
"ytake/socketio-cli": "dev-master"
},
// namespace support
$client->client("http://localhost:3000")->query(['query' => 1])
// namespace
->of('/active')->connection(function() use($client){
// event receive
$client->on('connection', function($data) use($client){
// value from socket.io server
var_dump($data);
});
// event emit
$client->emit('sender', ['hello']);
// event receive
$client->on('message', function($data) use($client){
// value from socket.io server
var_dump($data);
$client->disconnect();
});
})->keepAlive();
This software is distributed under MIT License. See license.txt file for more info., (*2)
Special thanks goes to Wisembly team authors of Elephant.io, (*3)
Send events and receive socket.io PHP client
MIT
websocket socket.io