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

0.1.4 2017-02-07 08:48 UTC

This package is not auto-updated.

Last update: 2024-11-09 20:39:32 UTC


README

Latest Stable Version Total Downloads License

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

  1. Add package to your project using composer:
composer require inpassor/yii2-realplexor
  1. 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