inpassor/yii2-realplexor
Composer 安装命令:
composer require inpassor/yii2-realplexor
包简介
Realplexor extension for the Yii 2 framework
README 文档
README
Author: Inpassor inpassor@yandex.com
GitHub repository: https://github.com/Inpassor/yii2-realplexor
This library implements Dklab_Realplexor PHP API.
Dklab_Realplexor is comet server which handles 1000000+ parallel browser connections.
Installation
- Add package to your project using composer:
composer require inpassor/yii2-realplexor
- Add the realplexor application component to the console / web config in "components" section:
'components' => [
...
'realplexor' => [
'class' => 'inpassor\realplexor\Realplexor',
],
],
There are several parameters that available to configure:
| Parameter | Type | Description |
|---|---|---|
| host | string | The server host. Default: 127.0.0.1 |
| port | integer | The connection port. Default: 10010 |
| namespace | string | Namespace to use. Default: '' |
| login | string | Login for connection (if the server need it). Default: '' |
| password | string | Password for connection (if the server need it). Default: '' |
| timeout | integer | The connection timeout, in seconds. Default: 5 |
Usage
Use Realplexor transport as application component:
Yii::$app->realplexor
To get detailed information about properties and methods of the Realplexor application component, please read documentation for Realplexor PHP API.
Client-side
To implement Realplexor client-side use \inpassor\assets\JqueryRealplexor asset (it included in the dependancies for this package, so just use it), that refers to bower package inpassor-jquery-realplexor
统计信息
- 总下载量: 66
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-10-03