Skip to content

Commit c8a9820

Browse files
committed
doc/modules/http.websocket.md: Expand docs on websocket:send() opcode
Closes #91
1 parent ba3efa6 commit c8a9820

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/modules/http.websocket.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ Low level function to send a raw frame.
6464
Send the given `data` as a data frame.
6565

6666
- `data` should be a string
67-
- `opcode` can be a numeric opcode, `"text"` or `"binary"`. If `nil`, defaults to a text frame
67+
- `opcode` can be a numeric opcode, `"text"` or `"binary"`. If `nil`, defaults to a text frame.
68+
Note this `opcode` is the websocket frame opcode, not an application specific opcode. The opcode should be one from the [IANA registry](https://www.iana.org/assignments/websocket/websocket.xhtml#opcode).
6869

6970

7071
### `websocket:send_ping(data, timeout)` <!-- --> {#http.websocket:send_ping}

0 commit comments

Comments
 (0)