Destroy Peer to Peer Stream
- Updated2023-02-17
- 2 minute(s) read
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.
Inputs/Outputs

session in
A reference to the stream.

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.
Default value: no error

error out
Error information.
Unlike most nodes, this node runs normally even if error in contains an error.
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.