You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/modules/http.websocket.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,7 +64,8 @@ Low level function to send a raw frame.
64
64
Send the given `data` as a data frame.
65
65
66
66
-`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).
0 commit comments