From 986c75f6334849f577ed7ecc21425d07f6aff1f4 Mon Sep 17 00:00:00 2001 From: Spencer Pogorzelski <34356756+Scoder12@users.noreply.github.com> Date: Thu, 4 Jan 2024 12:07:27 -0800 Subject: [PATCH] fix different Array types causing JSON encoding failure --- client/src/AdriftClient.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/src/AdriftClient.ts b/client/src/AdriftClient.ts index 3e8ac70..e8fdec9 100644 --- a/client/src/AdriftClient.ts +++ b/client/src/AdriftClient.ts @@ -179,6 +179,8 @@ export class AdriftBareClient extends Client { } }); + // coerce iframe Array type to our window array type + protocols = Array.from(protocols); let { send, close } = this.connection.wsconnect( remote, protocols,