Skip to content

Add reconnect method to Client interface#322

Merged
penberg merged 2 commits into
tursodatabase:mainfrom
PThorpe92:PThorpe92/client_reconnect
Aug 14, 2025
Merged

Add reconnect method to Client interface#322
penberg merged 2 commits into
tursodatabase:mainfrom
PThorpe92:PThorpe92/client_reconnect

Conversation

@PThorpe92
Copy link
Copy Markdown
Contributor

Context:

Occasionally a client can experience a stream not found error when turso-server is restarted with an existing ongoing stateful stream, that has a baton referencing a different ConnectionManager instance.

There is currently no way of resetting the connection on the client side, without calling close. After calling close a new Client instance must be created because there is no way of re-opening the connection. This adds a reconnect method to the Client interface to allow for this.

@penberg penberg merged commit 70fb804 into tursodatabase:main Aug 14, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants