mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 22:40:01 -04:00
change build system to rollup
This commit is contained in:
parent
5122438c96
commit
c3db610837
39 changed files with 2225 additions and 2451 deletions
|
@ -1,17 +1,16 @@
|
|||
import { BareClient } from "@mercuryworkshop/bare-mux"
|
||||
const client = new BareClient()
|
||||
const RealWebSocket = WebSocket
|
||||
WebSocket = new Proxy(WebSocket, {
|
||||
construct(_target, args) {
|
||||
return client.createWebSocket(
|
||||
args[0],
|
||||
args[1],
|
||||
RealWebSocket,
|
||||
{
|
||||
"User-Agent": navigator.userAgent
|
||||
},
|
||||
// @ts-expect-error
|
||||
ArrayBuffer.prototype
|
||||
)
|
||||
}
|
||||
import { BareClient } from "@mercuryworkshop/bare-mux"
|
||||
const client = new BareClient()
|
||||
const RealWebSocket = WebSocket
|
||||
WebSocket = new Proxy(WebSocket, {
|
||||
construct(_target, args) {
|
||||
return client.createWebSocket(
|
||||
args[0],
|
||||
args[1],
|
||||
RealWebSocket,
|
||||
{
|
||||
"User-Agent": navigator.userAgent
|
||||
},
|
||||
ArrayBuffer.prototype
|
||||
)
|
||||
}
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue