ReceiveWebSocket (Socket function): Difference between revisions
Jump to navigation
Jump to search
Line 7: | Line 7: | ||
<table class="syntaxTable"> | <table class="syntaxTable"> | ||
<tr><th>%opCode</th> | <tr><th>%opCode</th> | ||
<td> | <td>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. | ||
<table> | <table> | ||
<tr><th>0</th> | <tr><th>0</th> | ||
Line 18: | Line 18: | ||
<td>Reserved for future use.</td></tr> | <td>Reserved for future use.</td></tr> | ||
<tr><th>8</th> | <tr><th>8</th> | ||
<td>Connection close frame.</td></tr> | <td>Connection close frame. A close frame should be sent in response.</td></tr> | ||
<tr><th>9</th> | <tr><th>9</th> | ||
<td>Ping. The receiver should respond with a Pong frame, unless a close frame has been received.</td></tr> | <td>Ping. The receiver should respond with a Pong frame, unless a close frame has been received.</td></tr> |
Revision as of 17:17, 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 |