mirror of
https://github.com/sbrl/Nibriboard.git
synced 2018-01-10 21:33:49 +00:00
34 lines
641 B
C#
34 lines
641 B
C#
using System;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace Nibriboard.Client
|
|
{
|
|
public class ClientSettings
|
|
{
|
|
/// <summary>
|
|
/// Whether the WebSocket is secure.
|
|
/// </summary>
|
|
public bool SecureWebSocket = false;
|
|
|
|
/// <summary>
|
|
/// The protocol to use over the WebSocket.
|
|
/// </summary>
|
|
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()
|
|
{
|
|
|
|
}
|
|
}
|
|
}
|