Skip to content

Commit

Permalink
docs: fix wss://echo.websocket.org example
Browse files Browse the repository at this point in the history
  • Loading branch information
cablehead committed Jan 15, 2025
1 parent a8a2c3b commit 7226341
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/src/content/docs/reference/generators.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,11 @@ via `<topic>.send` frames:

```nushell
# Create a websocket connection
"websocat wss://echo.websocket.org" | .append echo.spawn --meta {duplex: true}
"websocat wss://echo.websocket.org | lines" | .append echo.spawn --meta {duplex: true}
# Send input to the websocket
"hello" | .append echo.send
# Send input to the websocket: note the "\n", wss://echo.websocket.org won't
# reply until it sees a complete line
"hello\n" | .append echo.send
```

When running this generator:
Expand Down

0 comments on commit 7226341

Please sign in to comment.