fix different Array types causing JSON encoding failure

This commit is contained in:
Spencer Pogorzelski 2024-01-04 12:07:27 -08:00
parent a2d9da2fd2
commit 986c75f633

View file

@ -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( let { send, close } = this.connection.wsconnect(
remote, remote,
protocols, protocols,