working datachannel and inital RPC test

This commit is contained in:
2025-04-17 23:54:12 -07:00
parent aade48a7b8
commit f6bf55f13c
5 changed files with 522 additions and 160 deletions

View File

@@ -9,6 +9,7 @@
import { brotli } from "jsr:@deno-library/compress";
const superLog=true;
const memoryCache = true;
const filepathResponseCache: Map<string, Response> = new Map();
@@ -254,6 +255,8 @@ function connectWebsocket(request: Request) {
return null;
}
superLog && console.log(message);
const dispatchHandler = messageDispatch.get(message?.type)
if (!dispatchHandler) {
console.log("Got message I don't understand: ", event.data);