Skip to main content

Identity

Inputs: i1
Outputs: o1

The Identity operator forwards all the messages it receives without modifying them.

The Identity operator does not hold a message buffer on i1, so it emits the message through o1 right after it receives a message on i1.

y(tn)=x(tn)y(t_n)= x(t_n)

Parameters

id: The id of the operator

Usage

import { Program, Identity } from "@rtbot-dev/rtbot";

const id = "id";

const program = new Program();
program.addOperator(new Identity(id));