This commit is contained in:
Avad3 2024-07-14 05:16:54 -04:00
parent 555ae496a5
commit b448c5505b
20 changed files with 104 additions and 71 deletions

View file

@ -1,5 +1,6 @@
import { BareClient } from "@mercuryworkshop/bare-mux"
const client = new BareClient()
import { BareClient } from "../index";
const client = new BareClient();
WebSocket = new Proxy(WebSocket, {
construct(target, args) {
return client.createWebSocket(
@ -12,4 +13,4 @@ WebSocket = new Proxy(WebSocket, {
ArrayBuffer.prototype
)
}
});
})