Askedio\LaravelRatchet\RatchetServer::limit PHP 메소드

limit() 개인적인 메소드

Limit connections.
private limit ( ) : [type]
리턴 [type]
    private function limit()
    {
        if ($connectionLimit = config('ratchet.connectionLimit') && $this->connections - 1 >= $connectionLimit) {
            $this->console->info(sprintf('To many connections: %d of %d', $this->connections - 1, $connectionLimit));
            $this->conn->send(trans('ratchet::messages.toManyConnections'));
            $this->conn->close();
        }
        return $this;
    }