Closed colin-chadwick closed 5 months ago
@colin-chadwick
Yeah, this is an edge-runtime domain issue.
I was a bit worried after merging that PR earlier, so I tested the npm:ws
package and it failed as expected.
Websocket upgrades via Deno.upgradeWebSocket
calls within the user worker are supported, but WebSocket upgrades via the node compatibility layer were not properly implemented in the previous initial websocket support PR.
I'll review this issue and fix it soon. 😁
@nyannyacha Thanks for the quick reply. Looking forward to the fix. I think the full WS support will be a great step forward for the edge runtime. 😃
:tada: This issue has been resolved in version 1.43.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
Bug report
Describe the bug
When trying to connect to the websocket provided by the Hocuspocus package with the Supabase edge runtime, the following error is thrown:
To Reproduce
Expected behavior
The socket is connecting when using the deno run command of the Deno CLI, but fails on the Supabase edge runtime, both in the hosted and in the local environment.