NorskLinkOutputHealth type
The health of the inputs connected to a NorskOutput.norskLink() output. A peer is one connected input; its id is the output’s own, for the life of the connection.
Signature:
export type NorskLinkOutputHealth = {
event: "peerConnected";
peer: number;
} | {
event: "peerDisconnected";
peer: number;
reason: "writeDeadline" | "sendFailed";
}
/** The input fell behind; the output started dropping frames for it */
| {
event: "peerFellBehind";
peer: number;
}
/** It caught up again, having lost `framesDropped` frames over `behindMs` */
| {
event: "peerCaughtUp";
peer: number;
framesDropped: number;
behindMs: number;
};