up9cloud/engine.io-php-client
最新稳定版本:2.0.2
Composer 安装命令:
composer require up9cloud/engine.io-php-client
包简介
The php client for [engine.io](https://github.com/socketio/engine.io).
README 文档
README
The php client for engine.io.
| version | engine.io version |
|---|---|
| v1 | v1 |
| v2 | v2, v3 |
Installation
composer require up9cloud/engine.io-php-client
Usage
require_once __DIR__.'/vendor/autoload.php'; use eio\Client; $client = new Client('ws://localhost:9527'); $client->send(json_encode([ 'channel'=>'all', 'message'=>'helloworld' ]));
Advanced
require_once __DIR__.'/vendor/autoload.php'; use eio\Client; $options = [ // TODO: see src/Transport.php ]; // builtin debug method $debug = true; // custom debug method $debug = function ($time, $messages){ printf('[%.4f]: %s' . PHP_EOL, $time, $messages); }; $client = new Client($uri, $options, $debug);
统计信息
- 总下载量: 57
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-08-24