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:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user