The last part (“get stream for id”) I mean to get the stream for a specific ID, not the the ID of a user to make the hook. I mean, when I create the hook, I want to know the current status, so I have to do another query to know the actual status.
Actually, is not the first time that I’ve seen a “give me the current status when I create the subscription” instead of doing two different API calls. Subscriptions are meant to update the status depending on a given starting status, so I guess that is primordial to at least receive the starting status without doing extra calls.
And with kraken, I’ve seen the “receive alternate online/offline” in subsequent API calls (not using hooks) until some minutes has passed. Maybe helix don’t has the same cache rules.
Timestamp comparison could work, but, if the webhook has the state “stream started” before I subscribe (so I will not get that he is online) and the API endpoint still don’t has the cache for stream started? I’ll get a null stream from the endpoint and also won’t get a “stream started” event from the hook.