What happens to an open Ledger API stream upon token expiry?
- DarkoOP
Assuming that I subscribe to a stream on the Ledger API using a token that expires, what will happen upon expiry?
- Will the stream will be closed server-side with a descriptive error, or
- is the auth checked only when establishing the stream, which would result in the stream remaining open, while only a new connection would be rejected?
- cocreature
The streams are interrupted as the token expires. I believe it’s
PERMISSION_DENIEDbut I haven’t double checked the error code you get in that case.