feat(network)!: add v2 framing, pooled buffers and bounded dispatch
This commit is contained in:
@@ -6,7 +6,7 @@ namespace ShrinkNetwork
|
||||
{
|
||||
public static class ShrinkNetworkProtocol
|
||||
{
|
||||
public const int CurrentProtocolVersion = 1;
|
||||
public const int CurrentProtocolVersion = 2;
|
||||
public const int CurrentSchemaVersion = 1;
|
||||
}
|
||||
|
||||
@@ -28,6 +28,6 @@ namespace ShrinkNetwork
|
||||
public long SessionTokenExpiresAtUnixTimeSeconds;
|
||||
public string? Route;
|
||||
public ShrinkNetworkPacketKind Kind;
|
||||
public byte[] Payload = Array.Empty<byte>();
|
||||
public ReadOnlyMemory<byte> Payload = ReadOnlyMemory<byte>.Empty;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user