Files
SPT-Server-Build/Libraries/SPTarkov.Server.Core/Servers/Ws/IWebSocketConnectionHandler.cs
T
clodanSPT 1af50bfd34 Application cleanup (#485)
* Changed application to use background services and removed hacky http server startup

* Small improvements and method removals

* Removed Core dependency on Web application SDK

* Fixed wrong imported type

---------

Co-authored-by: Alex <clodanSPT@hotmail.com>
Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>
2025-07-18 16:21:24 +01:00

23 lines
651 B
C#

using System.Net.WebSockets;
using Microsoft.AspNetCore.Http;
namespace SPTarkov.Server.Core.Servers.Ws;
public interface IWebSocketConnectionHandler
{
string GetHookUrl();
string GetSocketId();
Task OnConnection(WebSocket ws, HttpContext context, string sessionIdContext);
Task OnMessage(
byte[] rawData,
WebSocketMessageType messageType,
WebSocket ws,
HttpContext context
);
/// <summary>
/// OnClose event of a WebSocket, it should already be assumed here that the WebSocket is closed.
/// </summary>
Task OnClose(WebSocket ws, HttpContext context, string sessionIdContext);
}