Skip to content

Commit 3cc90c6

Browse files
author
hollunder
committed
Add header and anchor
1 parent b5600fe commit 3cc90c6

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
@@ -53,14 +53,15 @@ The opcode `0x1` will be returned as `"text"` and `0x2` will be returned as `"bi
5353

5454
Iterator over [`websocket:receive()`](#http.websocket:receive).
5555

56+
#### Example {#http.websocket.each-example}
57+
5658
```lua
5759
local ws = websocket.new_from_uri("wss://echo.websocket.org")
5860
assert(ws:connect())
5961

6062
for data, opcode in ws:each() do
6163
print(data, opcode)
6264
end
63-
6465
```
6566

6667
### `websocket:send_frame(frame, timeout)` <!-- --> {#http.websocket:send_frame}

0 commit comments

Comments
 (0)