src/Plugin.php
public function callbackPhoneHome(TimerInterface $caller)
    {
        $connection = $caller->getData();

        $this->getLogger()->debug('Inactivity period reached, sending CTCP PING');
        $this->getEventQueueFactory()->getEventQueue($connection)->ctcpPing($connection->getNickname(), time());

        $timer = $this->getLoop()->addTimer($this->timeout, array($this, 'callbackGrimReaper'));
        $timer->setData($connection);
        $this->getTimers()->attach($connection, $timer);
    }
public function callbackPhoneHome(TimerInterface $caller)
    {
        $connection = $caller->getData();

        $this->getLogger()->debug('Inactivity period reached, sending CTCP PING');
        $this->getEventQueueFactory()->getEventQueue($connection)->ctcpPing($connection->getNickname(), time());

        $timer = $this->getLoop()->addTimer($this->timeout, array($this, 'callbackGrimReaper'));
        $timer->setData($connection);
        $this->getTimers()->attach($connection, $timer);
    }
Callback called after the inactivity period is reached.

@param \React\EventLoop\Timer\TimerInterface $caller