i can probably fix later but this is fine for now -CE

This commit is contained in:
CoolElectronics 2023-08-14 12:41:57 -04:00
parent d4010d8199
commit 619e1c999b
No known key found for this signature in database
GPG key ID: F63593D168636C50
3 changed files with 7 additions and 12 deletions

@ -1 +1 @@
Subproject commit 63a735814868f0a2c0411b18b8d6e03e84007ea0 Subproject commit df7a91b5192502968a8b0735c74cc7be2da67a73

@ -1 +1 @@
Subproject commit a9194b00c1ced925634b4bd15d79cca17aaa56cc Subproject commit e5d41a5e9b1fc8b8b485223378d10311d57cb81e

View file

@ -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;
} }