What happens to an open Ledger API stream upon token expiry?
App Development2 posts198 viewsLast activity May 2022
DA
DarkoOP
May 2022Assuming 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?
CO
cocreature
May 2022The streams are interrupted as the token expires. I believe it’s PERMISSION_DENIED but I haven’t double checked the error code you get in that case.