Core logic ported from TS: HttpClientFactory, Environment and WebSocketHandler.

This commit is contained in:
2026-04-09 09:41:16 +02:00
parent 63e52336e2
commit 3ee4edac6c
6 changed files with 132 additions and 7 deletions

15
Core/EnvironmentConfig.cs Normal file
View File

@@ -0,0 +1,15 @@
namespace Chtn.CSharp.SDK.Core
{
public class SDKConfig
{
public string ApiUrl { get; set; } = "https://api.chatenium.hu";
public string CdnUrl { get; set; } = "https://cdn.chatenium.hu";
public string WsUrl { get; set; } = "wss://api.chatenium.hu";
}
public static class EnvironmentConfig
{
private static SDKConfig _currentConfig = new SDKConfig();
public static SDKConfig Get() => _currentConfig;
}
}