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 9bdfdc3 commit 31df074Copy full SHA for 31df074
docs/Get-WebSocket.md
@@ -31,6 +31,8 @@ Create a WebSocket job that connects to a WebSocket and outputs the results.
31
```PowerShell
32
$socketServer = Get-WebSocket -RootUrl "http://localhost:8387/" -HTML "<h1>WebSocket Server</h1>"
33
$socketClient = Get-WebSocket -SocketUrl "ws://localhost:8387/"
34
+foreach ($n in 1..10) { $socketServer.Send(@{n=Get-Random}) }
35
+$socketClient | Receive-Job -Keep
36
```
37
Get is the default verb, so we can just say WebSocket.
38
`-Watch` will output a continous stream of objects from the websocket.
0 commit comments