class Node

export declare class Node

Represents a type of stream within the graph, e.g. an Opus stream, or a stream of raw audio.

Constructors

constructor()

Constructs a new instance of the Node class

readonly
edges : Edge[]

The outbound edges from this node.

readonly
type : StreamType

The type of stream for this node.

addEdge(
edge: Omit<Edge, 'from'>
) : void

Creates an outbound edge from this node.