Widget.status
Widget.status.value; // "connecting" | "connected" | "disconnected"Widget.status.onChange(handler); // returns the function to unsubscribeWidget.status gives the connection with Streamer.bot. value is the current state. onChange calls the handler right away with the current state and then on
every change. “disconnected” takes a while to arrive (15 seconds by default, status.graceSeconds in the manifest), so it does not flicker on stream.
Widget.status.onChange((state) => { Widget.dom.text(app, state === "connected" ? "" : "Connecting…");});