Web SDK - RainwayConfig.onStreamStop

Home > rainway-sdk > RainwayConfig > onStreamStop

RainwayConfig.onStreamStop property

Called when a remote peer ends its stream.

Use RainwayStream.host to figure out which peer's stream it is.

Signature:

onStreamStop?: (runtime: RainwayRuntime, stream: RainwayStream) => void;