TCPSocket.ReadAll
From Xojo Documentation
Method
Reads all the data from the internal buffer.
Returns the data as a String. The optional Encoding parameter enables you to specify the text encoding of the data to be returned. Use the Encodings module to specify a text encoding.
Example
This example reads all the data in the buffer into a TextArea.
TextField1.AddText(listener.ReadAll)