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 SupportedOpCodes { get; } // Handle a single incoming message Task HandleAsync( int opCode, IConnection connection, ReadOnlyMemory payload, CancellationToken cancellationToken); }