Configuration.onStart()
Description
Registers a function to be called when a pipeline is created.
Syntax
pipy().pipeline().onStart(() => void onPipelineCreated()).filterA().filterB()// ...pipy().pipeline().onStart(() => getInitialInputEvents()).filterA().filterB()// ...
Parameters
onStart(handler)
handler
A function that is called every time a new pipeline instance is created. Its parameters depend on the type of joint-filter that creates the pipeline. Its return value, if any, is an Event or a Message or an array of them that makes up the initial input to the pipeline.
Return Value
The same Configuration object.