Web SDK - RainwayConfig.onPeerDataChannel

Home > rainway-sdk > RainwayConfig > onPeerDataChannel

RainwayConfig.onPeerDataChannel property

Called when a remote peer opens a Data Channel.

Signature:

onPeerDataChannel?: (runtime: RainwayRuntime, peer: RainwayPeer, channel: string, event: RTCDataChannelEvent) => void;