Use WSS over WS

This commit is contained in:
2026-01-24 11:35:45 -07:00
parent fec420d77f
commit ca4d78d711

View File

@@ -1,10 +1,9 @@
public class Endpoints public class Endpoints
{ {
private static readonly string HOST = "games.lncvrt.xyz"; private static readonly string HOST = "games.lncvrt.xyz";
private static readonly int WS_PORT = 3342;
public static readonly string BASE_URL = $"https://{HOST}/api"; public static readonly string BASE_URL = $"https://{HOST}/api";
public static readonly string BERRYDASH_ENDPOINT = BASE_URL + "/berrydash"; public static readonly string BERRYDASH_ENDPOINT = BASE_URL + "/berrydash";
public static readonly string WS_ENDPOINT = $"ws://{HOST}:{WS_PORT}/api/ws"; public static readonly string WS_ENDPOINT = $"wss://{HOST}/api/ws";
public static readonly string CAN_LOAD_CLIENT_ENDPOINT = BASE_URL + "/can-load-client"; public static readonly string CAN_LOAD_CLIENT_ENDPOINT = BASE_URL + "/can-load-client";
public static readonly string LATEST_VERSION_ENDPOINT = BERRYDASH_ENDPOINT + "/latest-version"; public static readonly string LATEST_VERSION_ENDPOINT = BERRYDASH_ENDPOINT + "/latest-version";
public static readonly string LEADERBOARDS_ENDPOINT = BERRYDASH_ENDPOINT + "/leaderboards"; public static readonly string LEADERBOARDS_ENDPOINT = BERRYDASH_ENDPOINT + "/leaderboards";