Files
systemrevivalserver/Networking/Handling/IClientMessageHandler.cs
T
2025-11-10 13:18:13 -05:00

20 lines
489 B
C#

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);
}