Update: Seems everything is working now?

This commit is contained in:
2026-05-25 01:06:19 -04:00
parent 1ed3efcc68
commit cd2d809322
6 changed files with 532 additions and 486 deletions

View File

@@ -0,0 +1,34 @@
namespace RelayShared.Services;
public enum WsAction
{
Authenticate,
RegisterKey,
GetServerKey,
GetChannels,
GetHistory,
RtcJoin,
RtcLeave
}
public enum WsEvent
{
Authenticated,
KeyRegistered,
Error
}
public sealed class WsControlMessage
{
public WsAction Action { get; set; }
public string? Username { get; set; }
public string? Token { get; set; }
public string? ChannelId { get; set; }
public string? PublicKey { get; set; }
}
public sealed class WsEventMessage
{
public WsEvent Event { get; set; }
public string? Detail { get; set; }
}