SendWebSocket (Socket function): Difference between revisions
Jump to navigation
Jump to search
Line 25: | Line 25: | ||
<td>Connection close frame.</td></tr> | <td>Connection close frame.</td></tr> | ||
<tr><th>9</th> | <tr><th>9</th> | ||
<td>Ping.</td></tr> | <td>Ping. The receiver should respond with a Pong frame, unless a close frame has been received.</td></tr> | ||
<tr><th>10</th> | <tr><th>10</th> | ||
<td>Pong.</td></tr> | <td>Pong. This is sent as a response to a Ping frame.</td></tr> | ||
<tr><th>11-15</th> | <tr><th>11-15</th> | ||
<td>Reserved for future use.</td></tr> | <td>Reserved for future use.</td></tr> | ||
Line 33: | Line 33: | ||
<td>This value is added to the frame op code to indicate the final fragment of a non-control message. The first fragment may also be the final fragment.</td></tr> | <td>This value is added to the frame op code to indicate the final fragment of a non-control message. The first fragment may also be the final fragment.</td></tr> | ||
</table></td></tr> | </table></td></tr> | ||
<tr><th>boolean</th> | <tr><th>boolean</th> | ||
<td><var>Boolean</var> value that indicates whether to mask the data with a masking key. The default is not to mask the data. Masking is done using an internally generated masking key.</td></tr> | <td><var>Boolean</var> value that indicates whether to mask the data with a masking key. The default is not to mask the data. Masking is done using an internally generated masking key.</td></tr> |
Revision as of 16:38, 13 August 2019
Send Web Socket framed message (Socket class)
[Introduced in Model 204 7.8 βeta]
This page is under construction.
Syntax
[%number =] socket:SendWebSocket( string, number, boolean)
Syntax terms
%number | number | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
socket | Socket object | ||||||||||||||||||
string | string | ||||||||||||||||||
number | number is an op code indicating the type of web socket frame. Numbers 0-7 are non-control frames. Numbers 8-15 are control frames. Control frames are always sent immediately and cannot be fragmented. Specifying a reserved code will cause immediate request cancellation.
| ||||||||||||||||||
boolean | Boolean value that indicates whether to mask the data with a masking key. The default is not to mask the data. Masking is done using an internally generated masking key. |