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

isThrottled() 개인적인 메소드

Check if the called function is throttled.
private isThrottled ( [type] $conn, [type] $setting ) : boolean
$conn [type]
$setting [type]
리턴 boolean [description]
    private function isThrottled($conn, $setting)
    {
        $connectionThrottle = explode(':', config(sprintf('ratchet.throttle.%s', $setting)));
        return !Throttle::attempt(['ip' => $conn->remoteAddress, 'route' => $setting], $connectionThrottle[0], $connectionThrottle[1]);
    }