Supabase Websocket 连接失败

Supabase Websocket connection fails

我正在构建一个需要使用 supabase.on().subscribe( 的 svelte 应用程序,但我总是连接失败。

websocket connection to wss://<projectID>upabase.co/realtime/v1/websocket?apikey={myKey} failed

顺便说一句,我已经为 table 启用了复制设置。我已经降级 supabase.js 包,但仍然没有运气 该应用程序设置为 Vite.js 有什么想法吗?

我遇到了同样的问题,因为它不起作用,所以非常令人沮丧。

所以我在 GitHub 中提出了一个问题,我得到了这个回复,它成功了!!

there was an issue authenticating realtime connections of new supabase projects that was fixed and deployed over the weekend. can you try creating a new supabase project and trying again? if that is inconvenient, please send an email to supabase@support.io with your project ref.

issue link