using System;
using Newtonsoft.Json;
namespace Nibriboard.Client
{
public class ClientSettings
{
///
/// Whether the WebSocket is secure.
///
public bool SecureWebSocket = false;
///
/// The protocol to use over the WebSocket.
///
public string WebsocketProtocol = "RippleLink";
public int WebSocketPort;
public string WebSocketHost = "localhost";
public string WebSocketPath;
public string WebsocketUri {
get {
return (SecureWebSocket ? "wss" : "ws") + $"://{WebSocketHost}:{WebSocketPort}{WebSocketPath}";
}
}
public ClientSettings()
{
}
}
}