TigerEmu/Networking/Game/Sessions/IGameSessionManager.cs

13 lines
386 B
C#
Raw Normal View History

2023-09-23 11:11:07 +00:00
using System.Net.WebSockets;
namespace Tiger.Networking.Game.Sessions;
public interface IGameSessionManager
{
GameSession AddSession(WebSocket webSocket);
void RemoveSession(WebSocket webSocket);
void CloseAll();
GameSession? GetSession(WebSocket webSocket);
GameSession? GetSession(string sessionId);
Task CloseAsync(string reason, GameSession gameSession);
}