update: Device Selection + No Cam Required

This commit is contained in:
2026-03-31 04:58:00 -04:00
parent 8c6724038a
commit 6fedad92b1
4 changed files with 203 additions and 33 deletions

View File

@@ -20,7 +20,6 @@ builder.Services.AddSignalR();
var app = builder.Build();
app.MapGet("/", () => "Server Running!");
app.MapHub<WebRtcHub>("/webrtc");
app.Run();
var wssv = new WebSocketServer("ws://localhost:1337");
wssv.AddWebSocketService<ChatTest>("/");
@@ -127,9 +126,12 @@ ChatTest.ChannelDbKey = keyBase64;
Console.WriteLine("Server encryption key created.");
Console.ReadKey(true);
wssv.Stop();
await app.StartAsync();
Console.ReadKey(true);
wssv.Stop();
await app.StopAsync();
return;
static string ToJsonString(object? obj)