예제 #1
0
        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);
        }
예제 #2
0
        public PulseOnConnectionWebsocketBehaviour()
        {
            _testHasBegun = false;

            limiter = new Limiter(60); // Default max frames per second;
        }
 public RelayWebsocketBehaviour()
 {
     limiter = new Limiter(60); // Default max frames per second
 }