TsgcWSPClient_AMQP › Methods › WriteData
Low-level method that writes raw data straight onto the underlying WebSocket transport. Overloaded for string or stream input.
procedure WriteData(const aText: String);
| Name | Type | Description |
|---|---|---|
aText | const String | Raw text to write directly to the underlying WebSocket transport. |
String overload. Sends aText as a single WebSocket text frame, bypassing the AMQP codec entirely. Intended for diagnostics and advanced integration scenarios.
sgcWSPClient_AMQP1.WriteData('raw text frame');
procedure WriteData(aStream: TStream; aSize: Integer = 0; const aStreaming: TwsStreaming = stmNone);
| Name | Type | Description |
|---|---|---|
aStream | TStream | Stream whose contents are written directly to the underlying WebSocket transport. |
aSize | Integer | Number of bytes to read from aStream; 0 means the full stream. |
aStreaming | const TwsStreaming | Streaming mode used to fragment large payloads into multiple WebSocket frames. |
Stream overload. Sends the bytes of aStream as one or more binary WebSocket frames according to aStreaming. Bypasses the AMQP codec — only useful for advanced low-level scenarios.
sgcWSPClient_AMQP1.WriteData(vStream, 0, stmNone);