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