Askedio\LaravelRatchet\RatchetServer::throttle PHP Method

throttle() private method

Throttle connections.
private throttle ( ) : [type]
return [type]
    private function throttle()
    {
        if ($this->isThrottled($this->conn, 'onOpen')) {
            $this->console->info(sprintf('Connection throttled: %d', $this->conn->resourceId));
            $this->conn->send(trans('ratchet::messages.toManyConnectionAttempts'));
            $this->throttled = true;
            $this->conn->close();
        }
        return $this;
    }