Skip to main content
Table of Contents

TTMSFNCWXWebRTCCommunication.SendData Method

Sends a text message over a data channel of the specified peer connection.

API unit family: TMSFNCWXWebRTC Declaring type: TTMSFNCWXWebRTCCommunication Inherited from: TTMSFNCWXCustomWebRTCCommunication

Overloads

Overload 1

Sends a text message over a data channel of the specified peer connection.

FMX.TMSFNCWXWebRTC.hppPascalC++
procedure SendData(AID: string; AChannel: string; AData: string); overload;
void __fastcall SendData(System::UnicodeString AID, System::UnicodeString AChannel, System::UnicodeString AData)/* overload */;

Parameters

Name Description
AID The peer connection identifier.
AChannel The data channel name.
AData The text payload to send.

Overload 2

Sends a binary message over a data channel of the specified peer connection.

FMX.TMSFNCWXWebRTC.hppPascalC++
procedure SendData(AID: string; AChannel: string; AData: TStream); overload;
void __fastcall SendData(System::UnicodeString AID, System::UnicodeString AChannel, System::Classes::TStream* AData)/* overload */;

Parameters

Name Description
AID The peer connection identifier.
AChannel The data channel name.
AData The stream containing the binary payload. The stream is not freed by this method.