Web SDK - RainwayConfig.onPeerMessage

Home > rainway-sdk > RainwayConfig > onPeerMessage

RainwayConfig.onPeerMessage property

Called when a remote peer sends an application message over a Data Channel.

Signature:

onPeerMessage?: (runtime: RainwayRuntime, peer: RainwayPeer, channel: string, data: Uint8Array) => void;