Destroy Peer to Peer Stream

Unlinks the writer and reader and purges data from the stream.

Any existing data in the writer is lost. If a stream is enabled, this function disables the stream without flushing the writer before unlinking the reader and writer.

1378

Inputs/Outputs

datatype_icon

session in

A reference to the stream.

datatype_icon

error in

Error conditions that occur before this node runs.

Unlike most nodes, this node runs normally even if an error occurs before this node runs.

Standard Error Behavior

Default value: no error

datatype_icon

error out

Error information.

Unlike most nodes, this node runs normally even if error in contains an error.

Standard Error Behavior

Flushing Existing Data

To guarantee all existing data in the writer is flushed to the reader before disabling the stream, use Flush and Disable Peer to Peer Stream.