update: Device Selection + No Cam Required
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user