tursodatabase / libsql-client-ts

TypeScript/JavaScript client API for libSQL
https://docs.turso.tech/sdk/ts/quickstart
MIT License
226 stars 32 forks source link

WebSocket connection breakage with Vercel Edge functions #23

Closed penberg closed 1 year ago

penberg commented 1 year ago

Numnumberry writes on Turso Discord that the following code on Vercel:

image

Fails as follows:

image

Looks like a bug in https://github.com/libsql/isomorphic-ts, but since it triggers via the TypeScript client API, let's track it here.

honzasp commented 1 year ago

Vercel edge functions don't support WebSockets, #25 at least fixes the error message.