Function selectMotionMasterMessageByTopic

  • Creates an operator that selects only messages whose topic matches the specified topic and emits the associated data payload.

    This is commonly used when incoming data arrives as [topic, payload] tuples.

    Returns

    Operator that emits only payloads belonging to the given topic.

    Example

    source$.pipe(
    selectMotionMasterMessageByTopic<DeviceStatus>('device/status')
    ).subscribe(status => console.log(status));

    Type Parameters

    • T

      The payload type associated with the topic.

    Parameters

    • topic: string

      Topic identifier to match.

    Returns UnaryFunction<Observable<[string, T]>, Observable<T>>

Generated using TypeDoc