Modular Message Service

This commit is contained in:
dingo
2025-11-10 13:18:13 -05:00
parent a45cc41f4a
commit 53a8ebb1d6
5 changed files with 200 additions and 91 deletions
@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace Server.Networking.Handling;
public interface IClientMessageHandler
{
// Which opcodes this handler will process
IReadOnlyCollection<int> SupportedOpCodes { get; }
// Handle a single incoming message
Task HandleAsync(
int opCode,
IConnection connection,
ReadOnlyMemory<byte> payload,
CancellationToken cancellationToken);
}