mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-05 15:55:02 +00:00
fix: handle subsequent join calls and clientid/websocket client mismatches
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user