Askedio\LaravelRatchet\RatchetServer::isThrottled PHP Method

isThrottled() private method

Check if the called function is throttled.
private isThrottled ( [type] $conn, [type] $setting ) : boolean
$conn [type]
$setting [type]
return 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]);
    }