merge websocket server logic

This commit is contained in:
Vinzenz Schroeter 2024-04-21 23:00:44 +02:00
parent 3cea9c967d
commit 57c0d229f1
9 changed files with 199 additions and 162 deletions

View file

@ -47,7 +47,7 @@ internal static class Endpoints
return Results.BadRequest();
using var ws = await context.WebSockets.AcceptWebSocketAsync();
await clientScreenServer.HandleClient(ws, player);
await clientScreenServer.HandleClientAsync(ws, player);
return Results.Empty;
});
@ -60,7 +60,7 @@ internal static class Endpoints
return Results.NotFound();
using var ws = await context.WebSockets.AcceptWebSocketAsync();
await controlsServer.HandleClient(ws, player);
await controlsServer.HandleClientAsync(ws, player);
return Results.Empty;
});