ReceiveWebSocket (Socket function): Difference between revisions
Jump to navigation
Jump to search
Line 12: | Line 12: | ||
<td>A continuation frame. A continuation frame is treated as text or binary based on the op code of the first frame.</td></tr> | <td>A continuation frame. A continuation frame is treated as text or binary based on the op code of the first frame.</td></tr> | ||
<tr><th>1</th> | <tr><th>1</th> | ||
<td>A text frame. Text frames are are translated to | <td>A text frame. Text frames are are translated to EBCDIC with the translate table in effect for the port.</td></tr> | ||
<tr><th>2</th> | <tr><th>2</th> | ||
<td>A binary frame. No translation is done for binary frames.</td></tr> | <td>A binary frame. No translation is done for binary frames.</td></tr> |
Revision as of 17:25, 13 August 2019
Receive Web Socket framed message (Socket class)
[Introduced in Model 204 7.8 βeta]
This page is under construction.
Syntax
%opCode = socket:ReceiveWebSocket( string)
Syntax terms
%opCode | op code is a number indicating the type of web socket frame received. Numbers 0-7 are non-control frames. Numbers 8-15 are control frames.
| ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
socket | Socket object | ||||||||||||||||||
string | string |
Usage notes
Received data may be masked by the sender. Masked data is always unmasked using the sender's masking key before it is returned to the application.