TTMSFNCWXWebRTCPeer.SendData Method
Sends a text message over the named data channel.
API unit family: TMSFNCWXWebRTC
Declaring type: TTMSFNCWXWebRTCPeer
Overloads
Overload 1
Sends a text message over the named data channel.
procedure SendData(AChannel: string; AData: string); overload;
Parameters
| Name | Description |
|---|---|
AChannel |
The name of the data channel to send on. |
AData |
The text payload to send. |
Overload 2
Sends a binary message over the named data channel.
procedure SendData(AChannel: string; AData: TStream); overload;
Parameters
| Name | Description |
|---|---|
AChannel |
The name of the data channel to send on. |
AData |
The binary payload to send. The stream is read from its current position and is not freed by this method. |