working messages!!@!@
All checks were successful
Server Build / publish (push) Successful in 30s
Voice Build / publish (push) Successful in 26s

This commit is contained in:
olcxja 2026-06-02 12:53:32 +02:00
commit e33554f369
4 changed files with 238 additions and 45 deletions

View file

@ -58,6 +58,17 @@ public class Program
switch (path)
{
case "/_larpix/ws":
if (context.WebSockets.IsWebSocketRequest)
{
using var webSocket = await context.WebSockets.AcceptWebSocketAsync();
await WsHandler(context, webSocket, query);
}
else
{
context.Response.StatusCode = StatusCodes.Status400BadRequest;
}
return;
case "/_larpix/serverinfo":
ServerInfo serverInfo = new ServerInfo();
serverInfo.domain = DOMAIN;