merge websocket server logic
This commit is contained in:
parent
3cea9c967d
commit
57c0d229f1
9 changed files with 199 additions and 162 deletions
|
@ -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;
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue