mirror of
https://github.com/MercuryWorkshop/adrift.git
synced 2025-05-13 06:10:01 -04:00
i can probably fix later but this is fine for now -CE
This commit is contained in:
parent
d4010d8199
commit
619e1c999b
3 changed files with 7 additions and 12 deletions
2
Dynamic
2
Dynamic
|
@ -1 +1 @@
|
||||||
Subproject commit 63a735814868f0a2c0411b18b8d6e03e84007ea0
|
Subproject commit df7a91b5192502968a8b0735c74cc7be2da67a73
|
|
@ -1 +1 @@
|
||||||
Subproject commit a9194b00c1ced925634b4bd15d79cca17aaa56cc
|
Subproject commit e5d41a5e9b1fc8b8b485223378d10311d57cb81e
|
|
@ -94,20 +94,15 @@ export class AdriftBareClient extends Client {
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
(ws as any).__defineGetter__("send", () => (data: any) => {
|
ws.send = (data: any) => {
|
||||||
send(data);
|
send(data);
|
||||||
});
|
};
|
||||||
// uv wraps it and we don't want that
|
|
||||||
// i can probably fix later but this is fine for now -CE
|
|
||||||
(ws as any).__defineSetter__("send", () => {});
|
|
||||||
|
|
||||||
(ws as any).__defineGetter__(
|
ws.close =
|
||||||
"close",
|
(code?: number, reason?: string) => {
|
||||||
() => (code?: number, reason?: string) => {
|
|
||||||
close(code, reason);
|
close(code, reason);
|
||||||
onReadyState(WebSocket.CLOSING);
|
onReadyState(WebSocket.CLOSING);
|
||||||
}
|
};
|
||||||
);
|
|
||||||
|
|
||||||
return ws;
|
return ws;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue