TTMSFNCWXCustomWebRTCCommunication.SendData Method
Sends a text message over a data channel of the specified peer connection.
API unit family: TMSFNCWXWebRTC
Declaring type: TTMSFNCWXCustomWebRTCCommunication
Overloads
Overload 1
Sends a text message over a data channel of the specified peer connection.
procedure SendData(AID: string; AChannel: string; AData: string); 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.
procedure SendData(AID: string; AChannel: string; AData: TStream); 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. |