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

Periodically open a new WebSocket connection #35

Closed honzasp closed 1 year ago

honzasp commented 1 year ago

This is useful to make sure that the client picks up a new replica when it becomes available. We try to make the reconnection transparent to the user and take care not to introduce any extra latency: during normal operation, the latency of the additional WebSocket handshakes should be hidden.