Add deno-only bootstrap peer implementation. Uses libdatachannel for the RTCDatachannel implementation.

Fix Typescript sourcemap serving
PeerManager: more robust when RTCPeerConnection fails or is not present
Separate source maps so the main files arent bloated
This commit is contained in:
2025-06-10 20:23:19 -07:00
parent a96d7e28c8
commit d0fd041f7e
27 changed files with 132 additions and 149 deletions

View File

@@ -293,7 +293,7 @@ function connectWebsocket(request: Request) {
}
async function devServerWatchFiles() {
const watcher = Deno.watchFs("../static/");
const watcher = Deno.watchFs(["../static/", "../src/"]);
for await (const event of watcher) {
if (event.kind === "modify") {
for (const path of event.paths) {
@@ -320,6 +320,10 @@ function handler(request: Request, info: any): Promise<Response> | Response {
return new Response("Not serving video", { status: 404 });
}
if (url.pathname.includes("/src")) {
return serveFile(url.pathname);
}
if (url.pathname === "/") {
return serveFile("/static/index.html")
}