src/Network/Observer/AbstractBeats.php
private function enable(Frame $frame)
    {
        $this->onHeartbeatFrame($frame, $this->getHeartbeats($frame));
        if ($this->intervalServer && $this->intervalClient) {
            $intervalAgreement = $this->calculateInterval(max($this->intervalClient, $this->intervalServer));
            $this->intervalUsed = $intervalAgreement / 1000; // milli to micro
            if ($intervalAgreement) {
                $this->enabled = true;
                $this->rememberActivity();
            }
        }
    }
private function enable(Frame $frame)
    {
        $this->onHeartbeatFrame($frame, $this->getHeartbeats($frame));
        if ($this->intervalServer && $this->intervalClient) {
            $intervalAgreement = $this->calculateInterval(max($this->intervalClient, $this->intervalServer));
            $this->intervalUsed = $intervalAgreement / 1000; // milli to micro
            if ($intervalAgreement) {
                $this->enabled = true;
                $this->rememberActivity();
            }
        }
    }
private function enable ( Frame $ frame ) { $ this -> onHeartbeatFrame ( $ frame , $ this -> getHeartbeats ( $ frame ) ) ; if ( $ this -> intervalServer && $ this -> intervalClient ) { $ intervalAgreement = $ this -> calculateInterval ( max ( $ this -> intervalClient , $ this -> intervalServer ) ) ; $ this -> intervalUsed = $ intervalAgreement / 1000 ; // milli to micro if ( $ intervalAgreement ) { $ this -> enabled = true ; $ this -> rememberActivity ( ) ; } } }
Enables the delay detection when preconditions are fulfilled.

@param Frame $frame
@return void
Enables the delay detection when preconditions are fulfilled .