working messages!!@!@
This commit is contained in:
parent
bcd0e2c0ec
commit
e33554f369
4 changed files with 238 additions and 45 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue