Web SDK - RTCTransport\_2

Home > rainway-sdk > RTCTransport_2

RTCTransport_2 class

A WebRTC-based transport implementation.

Signature:

export declare class RTCTransport extends RainwayTransport 

Extends: RainwayTransport

Constructors

ConstructorModifiersDescription
(constructor)(ownPeerId, targetPeerId, sendLocalOfferSdp, sendLocalAnswerSdp, sendLocalIceCandidate, reportStateChange)Constructs a new instance of the RTCTransport class

Properties

PropertyModifiersTypeDescription
handlePeerInfo(peerInfo: IPeerSignalingInformation) => void
maxMessageSizenumber
onApplicationMessage(channel: string, data: Uint8Array) => void
onClose() => void
onRainwayMessage(data: IRainwayMessage) => void
statusRainwayTransportStatus

Methods