initial work on websocket wrapper

This commit is contained in:
velzie 2024-09-07 17:37:35 -04:00
parent a8169c4cde
commit 05795969a7
No known key found for this signature in database
GPG key ID: 048413F95F0DDE1F
3 changed files with 212 additions and 11 deletions

View file

@ -13,6 +13,7 @@ import {
decodeUrl,
encodeUrl,
} from "../shared";
import type BareClientType from "@mercuryworkshop/bare-mux";
import { createWrapFn } from "./shared/wrap";
import { NavigateEvent } from "./events";
import type { URLMeta } from "../shared/rewriters/url";
@ -60,7 +61,7 @@ export class ScramjetClient {
globalProxy: any;
locationProxy: any;
serviceWorker: ServiceWorkerContainer;
bare: any;
bare: BareClientType;
descriptors: Record<string, PropertyDescriptor> = {};
natives: Record<string, any> = {};