Home > @datashaper/workflow > StepApi > emit
Emits data to an output socket. If undefined, default output.
Signature:
emit(value: T, socket?: SocketName): void;| Parameter | Type | Description |
|---|---|---|
| value | T | The value to emit |
| socket | SocketName | (Optional) The socket name to emit data to |
Returns:
void