Phergie plugin which monitors a connection for in-activity, and if the timeout is reached then it will attempt to reconnect.
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.
new \Phergie\Irc\Plugin\React\KeepAlive\Plugin(array(
// Seconds of inactivity before attmping reconnect
'timeout' => 600,
// Quit message on reconnect
'quitMessage' => 'Ping timeout, reconnecting...'
))
To run the unit test suite:
curl -s https://getcomposer.org/installer | php
php composer.phar install
./vendor/bin/phpunit
Released under the BSD License. See LICENSE
.