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 1715d05 commit 102eba2Copy full SHA for 102eba2
docs/README.md
@@ -52,6 +52,8 @@ To stop watching a websocket, simply stop the background job.
52
# Create a WebSocket job that connects to a WebSocket and outputs the results.
53
$socketServer = Get-WebSocket -RootUrl "http://localhost:8387/" -HTML "<h1>WebSocket Server</h1>"
54
$socketClient = Get-WebSocket -SocketUrl "ws://localhost:8387/"
55
+foreach ($n in 1..10) { $socketServer.Send(@{n=Get-Random}) }
56
+$socketClient | Receive-Job -Keep
57
~~~
58
#### Get-WebSocket Example 2
59
0 commit comments