Merge remote-tracking branch 'refs/remotes/origin/main'

This commit is contained in:
wearrrrr 2024-07-13 20:04:24 -05:00
commit 9be963e977

View file

@ -1,12 +1,11 @@
import { BareClient } from "@mercuryworkshop/bare-mux"
const client = new BareClient()
const RealWebSocket = WebSocket
WebSocket = new Proxy(WebSocket, {
construct(_target, args) {
construct(target, args) {
return client.createWebSocket(
args[0],
args[1],
RealWebSocket,
target,
{
"User-Agent": navigator.userAgent
},