Closed Louis-Tian closed 2 months ago
Can you update the Typescript definition to include this please?
@mattbishop done. Happy to add a test case for it as well.
But I am not sure what would be best way to go about it. Specifically what's the best way to stub the stream in test to force an error?
@Louis-Tian I have some other tests where I just terminate the backend. Perhaps that's a way forward?
@porsager That's kind of what I am doing in the error handler anyway so that will work for me. Just think it would be better to let the user to decide to what do? But if there is other things that require a direct termination then I guess it make perfect sense to just leverage on that.
This already seems to be merged, so I don't understand why the PR is still open.
Related to https://github.com/porsager/postgres/issues/757.
Expose a error handler on the subscribe function so any error happened while streaming replica can be handled in user space.