fix: handle subsequent join calls and clientid/websocket client mismatches

This commit is contained in:
Andrew Welker
2026-01-21 15:20:27 -06:00
parent 3fb30d5561
commit 9bad3ae21b
2 changed files with 94 additions and 23 deletions

View File

@@ -26,6 +26,15 @@ namespace PepperDash.Essentials.WebSocketServer
/// </summary>
public string Id { get; private set; }
/// <summary>
/// Updates the client ID - only accessible from within the assembly (e.g., by the server)
/// </summary>
/// <param name="newId">The new client ID</param>
internal void UpdateId(string newId)
{
Id = newId;
}
/// <summary>
/// Token associated with this client
/// </summary>