WebSocket

1 week ago 4

WebSocket interface: wording: ws.close()

← Previous revision Revision as of 17:09, 4 July 2025
Line 102: Line 102:


Note:
Note:
* If <code>ws.readyState</code> is <code>OPEN</code> or <code>OPENING</code>, set <code>ws.readyState</code> to <code>CLOSING</code> and start the closing handshake.
* If <code>ws.readyState</code> is <code>OPEN</code> or <code>OPENING</code>, <code>ws.readyState</code> is set to <code>CLOSING</code> and the closing handshake starts.
* If <code>ws.readyState</code> is <code>CLOSING</code> or <code>CLOSED</code>, do nothing (because the closing handshake has already started).
* If <code>ws.readyState</code> is <code>CLOSING</code> or <code>CLOSED</code>, nothing happens (because the closing handshake has already started).
|-
|-
| rowspan="4" |[[Event (computing)|Event]]
| rowspan="4" |[[Event (computing)|Event]]
Open Full Post