Skip to content

ws does not work in the browser. Browser clients must use the native WebSocket object #1423

@McKean

Description

@McKean

Bug report

  • I confirm this is a bug with Supabase, not with my own application.
  • I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

The latest patch breaks realtime subscribe() with the following error:
Error: ws does not work in the browser. Browser clients must use the native WebSocket object

after the update:

- @supabase/supabase-js 2.49.4
+ @supabase/supabase-js 2.49.6

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Go to 'a page where websockets are used'
  2. See error

Expected behavior

No error

Screenshots

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions