mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-01-30 21:04:48 +00:00
Using the generated security token as an ID was presenting problems with duplicate connections using the same ID and trying to figure out where to send the messages. Now, the clients have a unique ID that's an increasing integer that restarts at 1 when the program restarts.
29 lines
624 B
C#
29 lines
624 B
C#
namespace PepperDash.Essentials.WebSocketServer
|
|
{
|
|
/// <summary>
|
|
/// Represents a JoinToken
|
|
/// </summary>
|
|
public class JoinToken
|
|
{
|
|
/// <summary>
|
|
/// Unique client ID for a client that is joining
|
|
/// </summary>
|
|
public string Id { get; set; }
|
|
/// <summary>
|
|
/// Gets or sets the Code
|
|
/// </summary>
|
|
public string Code { get; set; }
|
|
|
|
public string RoomKey { get; set; }
|
|
|
|
public string Uuid { get; set; }
|
|
|
|
public string TouchpanelKey { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// Gets or sets the Token
|
|
/// </summary>
|
|
public string Token { get; set; } = null;
|
|
}
|
|
}
|