private void SetPeakLevel(PeakLevelEventArgs args)
        {
            var level = Math.Round(args.Level, 3);

            if (level != _previousLevel)
            {
                _previousLevel = level;
                _webSocketServer.Send("peakAudioLevel", level.ToString(CultureInfo.InvariantCulture));
            }
        }
        private void SendCleanupState()
        {
            var endState = "{\"CanAddPages\":false,\"CanDeletePage\":false,\"CanDuplicatePage\":false,\"BookLockedState\":\"OriginalBookMode\"}";

            _webSocketServer.Send(kWebsocketStateId, endState);
        }
 private void SetState(string state)
 {
     _webSocketServer.Send(kWebsocketStateId, state);
 }