function attachTimer() {
        $this->messenger->resume();
        
        if($this->timer || !$this->messenger->usesSockets()) {
            return;
        }
        
        $this->timer = $this->loop->addPeriodicTimer(($this->options['internalTimerTick'] ?? 30), function () {
            $this->internalTimerTick();
        });
    }