IWebSocketClient.Read (METH)ΒΆ

METHOD Read : NBS.ERROR

Read incoming messages.

InOut:

Scope

Name

Type

Comment

Return

Read

NBS.ERROR

Input

pData

__XWORD

Pointer to the payload data

udiSize

UDINT

Maximum size of the payload

Output

udiCount

UDINT

Size of the received data

xReceived

BOOL

TRUE if data received

eFrameType

FRAME_TYPE

Type of the payload

xIsFinalFragment

BOOL

FALSE if the payload is incomplete and is sent via multiple packets. TRUE, if the payload is complete or if the payload was incomplete and this packet is the last packet of a message.