Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/What happens to an open Ledger API stream upon token expiry?Forum ↗

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

App Development2 posts198 viewsLast activity May 2022
DA
DarkoOP
May 2022

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?
CO
cocreature
May 2022

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.

← Back to Discussions