定制 nfauchelle/phergie-keep-alive 二次开发

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

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

nfauchelle/phergie-keep-alive

最新稳定版本:v1.0.0

Composer 安装命令:

composer require nfauchelle/phergie-keep-alive

包简介

Phergie plugin which monitors when the last activity on a connection was and if it exceeds a certain time limit the connection is closed and re-created

README 文档

README

Phergie plugin which monitors a connection for in-activity, and if the timeout is reached then it will attempt to reconnect.

Build Status

Install

The recommended method of installation is through composer.

{
    "require": {
        "nfauchelle/phergie-keep-alive": "~1.0.0"
    }
}

or use the command below, it will automatically detect the latest version and bind it with ~.

composer require nfauchelle/phergie-keep-alive

See Phergie documentation for more information on installing and enabling plugins.

Configuration

new \Phergie\Irc\Plugin\React\KeepAlive\Plugin(array(
    // Seconds of inactivity before attmping reconnect
    'timeout' => 600,
    // Quit message on reconnect
    'quitMessage' => 'Ping timeout, reconnecting...'
))

Tests

To run the unit test suite:

curl -s https://getcomposer.org/installer | php
php composer.phar install
./vendor/bin/phpunit

License

Released under the BSD License. See LICENSE.

统计信息

  • 总下载量: 22
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: BSD-2-Clause
  • 更新时间: 2015-02-23