Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed issue where WebSocketImpl was getting overridden by faye-websocket #6562

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

maneesht
Copy link
Contributor

On RTDB, once the bundle is created, we check if MozWebSocket or WebSocket implementations are available. index.node.ts ends up overriding this with faye-websocket.

In Deno, index.node.ts ends up getting imported, but also has a default WebSocket implementation. So, first the native one is chosen, then overridden with faye-websocket. However, for whatever reason, faye-websocket doesn't properly connect in Deno environments, so we need to prevent the override, which is what this PR does.

@changeset-bot
Copy link

changeset-bot bot commented Aug 25, 2022

🦋 Changeset detected

Latest commit: 3b98def

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@firebase/database Patch
@firebase/database-compat Patch
firebase Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Aug 25, 2022

Size Report 1

Affected Products

  • @firebase/database

    TypeBase (f355335)Merge (6be7f4d)Diff
    main281 kB281 kB+20 B (+0.0%)
  • @firebase/database-compat/standalone

    TypeBase (f355335)Merge (6be7f4d)Diff
    main370 kB370 kB+20 B (+0.0%)

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/zHTFBnHM5E.html

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Aug 25, 2022

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.

None yet

3 participants