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
v1.0.0
2015-02-25 06:30 UTC
Requires
Requires (Dev)
- phake/phake: 2.0.0-beta2
- phpunit/phpunit: 4.5.*
This package is not auto-updated.
Last update: 2025-03-01 19:16:32 UTC
README
Phergie plugin which monitors a connection for in-activity, and if the timeout is reached then it will attempt to reconnect.
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
.