Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions doc/modules/http.websocket.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,16 @@ The opcode `0x1` will be returned as `"text"` and `0x2` will be returned as `"bi

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

This comment was marked as resolved.

#### Example {#http.websocket:each-example}

```lua
local ws = websocket.new_from_uri("wss://echo.websocket.org")
assert(ws:connect())

for data, opcode in ws:each() do
print(data, opcode)
end
```

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

Expand Down