TCPSocket.Lookahead Function

Returns a String, containing the data that is available in the internal queue without removing it. The optional Encoding parameter enables you to specify the text encoding of the data to be returned.

Syntax
result = TCPSocket.Lookahead( [Encoding] )

Parameters
Encoding | TextEncoding (Optional)

Return Value
Result | String

# Notes

Use the Encodings object to specify an encoding.