定制 inpassor/yii2-realplexor 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

inpassor/yii2-realplexor

Composer 安装命令:

composer require inpassor/yii2-realplexor

包简介

Realplexor extension for the Yii 2 framework

README 文档

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:

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-10-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固