Fixed issues with TTS voice changes. Added proper handling for slave clients. Fixed several stores. Fixed database saving to safely save foreign keys.

This commit is contained in:
Tom
2025-03-06 16:11:36 +00:00
parent 3e717522c2
commit fd0bca5c7c
13 changed files with 139 additions and 96 deletions

View File

@ -22,7 +22,8 @@ namespace HermesSocketServer.Socket
public WebSocketState State { get => _socket.State; }
public IPAddress? IPAddress { get => _ipAddress; }
public bool Connected { get => _connected; }
public string UID { get; }
public bool Slave { get; set; }
public string SessionId { get; }
public string? ApiKey { get; set; }
public string? Id { get; set; }
public string? Name { get; set; }
@ -43,7 +44,7 @@ namespace HermesSocketServer.Socket
Admin = false;
WebLogin = false;
_cts = new CancellationTokenSource();
UID = Guid.NewGuid().ToString("D");
SessionId = Guid.NewGuid().ToString("D");
LastHeartbeatReceived = DateTime.UtcNow;
}