Add websockets

This commit is contained in:
Lncvrt committed 2026-01-22 20:41:28 -07:00
1 parent 21c59bf669
commit e422d30f2c
21 files changed
+1125 -355

No files matched your search

+2
View File
@@ -1,8 +1,10 @@
public class Endpoints
{
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 BERRYDASH_ENDPOINT = BASE_URL + "/berrydash";
public static readonly string WS_ENDPOINT = $"ws://{HOST}:{WS_PORT}/api/ws";
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_SCORE_ENDPOINT = LEADERBOARDS_ENDPOINT + "/score";