19 lines
484 B
C#
19 lines
484 B
C#
using bts.websocket_core.json_rpc;
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Reflection;
|
|
|
|
namespace bts.websocket_core {
|
|
// Represents a unique client, a little redundant
|
|
public class WebsocketClientID : UniqueID {
|
|
public WebsocketClientID() : base(Guid.NewGuid().ToString()) {
|
|
}
|
|
|
|
public WebsocketClientID(string str) : base(str) { }
|
|
|
|
public static WebsocketClientID? Parse(JsonRpcId id) =>
|
|
new(id.ToString()!);
|
|
}
|
|
}
|