function isRealtimeFrame
Since 0.2.0
isRealtimeFrame(value: unknown): value is RealtimeFrame

Narrows an arriving broker payload to a RealtimeFrame.

A broker topic is shared infrastructure, so a malformed or foreign message must be dropped rather than crash the delivery loop or reach a consumer as a half-built frame.

Parameters

value: unknown

The deserialized broker payload

Return Type

value is RealtimeFrame

True when value is a well-formed frame

Usage

import { isRealtimeFrame } from "realtime-backplane-plugin/src/index.ts";