public void SetMaxFramesPerSecond(double maxFramesPerSecond) { if (maxFramesPerSecond < 15 || maxFramesPerSecond > 120) { throw new ArgumentException("Frames per second should be between 15 and 120 inclusive"); } this.limiter = new Limiter(maxFramesPerSecond); }
public PulseOnConnectionWebsocketBehaviour() { _testHasBegun = false; limiter = new Limiter(60); // Default max frames per second; }
public RelayWebsocketBehaviour() { limiter = new Limiter(60); // Default max frames per second }