inpassor / yii2-realplexor
Realplexor extension for the Yii 2 framework
Installs: 66
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- php: >=5.4.0
- bower-asset/inpassor-jquery-realplexor: *
- inpassor/realplexor: *
- inpassor/yii2-assets: *
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2024-12-21 21:14:15 UTC
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:
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