diff --git a/Dynamic b/Dynamic index 63a7358..df7a91b 160000 --- a/Dynamic +++ b/Dynamic @@ -1 +1 @@ -Subproject commit 63a735814868f0a2c0411b18b8d6e03e84007ea0 +Subproject commit df7a91b5192502968a8b0735c74cc7be2da67a73 diff --git a/bare-client-custom b/bare-client-custom index a9194b0..e5d41a5 160000 --- a/bare-client-custom +++ b/bare-client-custom @@ -1 +1 @@ -Subproject commit a9194b00c1ced925634b4bd15d79cca17aaa56cc +Subproject commit e5d41a5e9b1fc8b8b485223378d10311d57cb81e diff --git a/client/src/AdriftClient.ts b/client/src/AdriftClient.ts index 021ac7f..cdfe19c 100644 --- a/client/src/AdriftClient.ts +++ b/client/src/AdriftClient.ts @@ -94,20 +94,15 @@ export class AdriftBareClient extends Client { } ); - (ws as any).__defineGetter__("send", () => (data: any) => { + ws.send = (data: any) => { 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__( - "close", - () => (code?: number, reason?: string) => { + ws.close = + (code?: number, reason?: string) => { close(code, reason); onReadyState(WebSocket.CLOSING); - } - ); + }; return ws; }