Skip to content
CCPEDIAby Unity Nodes
App Development

What happens to an open Ledger API stream upon token expiry?

2 posts233 viewsLast activity May 2022

  1. DarkoOP

    Assuming that I subscribe to a stream on the Ledger API using a token that expires, what will happen upon expiry?

    1. Will the stream will be closed server-side with a descriptive error, or
    2. 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?
  2. cocreature

    The 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.