We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 921e04d commit b5600feCopy full SHA for b5600fe
doc/modules/http.websocket.md
@@ -53,6 +53,15 @@ The opcode `0x1` will be returned as `"text"` and `0x2` will be returned as `"bi
53
54
Iterator over [`websocket:receive()`](#http.websocket:receive).
55
56
+```lua
57
+local ws = websocket.new_from_uri("wss://echo.websocket.org")
58
+assert(ws:connect())
59
+
60
+for data, opcode in ws:each() do
61
+ print(data, opcode)
62
+end
63
64
+```
65
66
### `websocket:send_frame(frame, timeout)` <!-- --> {#http.websocket:send_frame}
67
0 commit comments