Skip to content

Conversation

@den1sar
Copy link
Contributor

@den1sar den1sar commented Oct 17, 2025

While integrating the library into our project, we ran into an issue related to the transport array passed from window.top.
In our setup, the transport object is defined in the top-level window and shared with embedded frames. However, due to JavaScript’s realm isolation, an array created in window.top is not recognized as an instance of Array in the current window context.

As a result, the check transport instanceof Array fails, even though transport is a valid array.

 window app_ options web socket notifications client connection instanceof Array

@den1sar den1sar force-pushed the den1sar-fix-instanceof branch from 1c308e2 to c966e71 Compare October 17, 2025 11:49
@FZambia FZambia merged commit 7e6760a into centrifugal:master Oct 17, 2025
5 checks passed
@FZambia
Copy link
Member

FZambia commented Oct 17, 2025

Many thanks!! Part of 5.5.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants