Changing packet dispatch, packets dying on gateway and not being relayed
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
namespace SOR.Shared.Networking;
|
||||
|
||||
using System.Text.Json;
|
||||
|
||||
/// <summary>
|
||||
/// NATS request payload used when the Gateway relays a client message to a worker.
|
||||
/// </summary>
|
||||
public sealed record RemoteDispatchRequest(
|
||||
string Type,
|
||||
int Seq,
|
||||
byte[] Payload,
|
||||
string UserId,
|
||||
string DisplayName,
|
||||
string SessionToken
|
||||
);
|
||||
|
||||
/// <summary>
|
||||
/// NATS response payload returned by a worker after handling a relayed client message.
|
||||
/// </summary>
|
||||
public sealed record RemoteDispatchResponse(
|
||||
bool Handled,
|
||||
bool HasResponse,
|
||||
string? ResponseType,
|
||||
int ResponseRef,
|
||||
JsonElement? ResponsePayload,
|
||||
string? ErrorCode,
|
||||
string? ErrorMessage
|
||||
);
|
||||
Reference in New Issue
Block a user