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 b5600fe commit 3cc90c6Copy full SHA for 3cc90c6
doc/modules/http.websocket.md
@@ -53,14 +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
+#### Example {#http.websocket.each-example}
57
+
58
```lua
59
local ws = websocket.new_from_uri("wss://echo.websocket.org")
60
assert(ws:connect())
61
62
for data, opcode in ws:each() do
63
print(data, opcode)
64
end
-
65
```
66
67
### `websocket:send_frame(frame, timeout)` <!-- --> {#http.websocket:send_frame}
0 commit comments