Skip to content

Commit 1715d05

Browse files
StartAutomatingStartAutomating
authored andcommitted
docs: Get-WebSocket examples
1 parent 31df074 commit 1715d05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/_data/Help/Get-WebSocket.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
{
3838
"Title": "EXAMPLE 1",
3939
"Markdown": "Create a WebSocket job that connects to a WebSocket and outputs the results.",
40-
"Code": "$socketServer = Get-WebSocket -RootUrl \"http://localhost:8387/\" -HTML \"<h1>WebSocket Server</h1>\"\n$socketClient = Get-WebSocket -SocketUrl \"ws://localhost:8387/\""
40+
"Code": "$socketServer = Get-WebSocket -RootUrl \"http://localhost:8387/\" -HTML \"<h1>WebSocket Server</h1>\"\n$socketClient = Get-WebSocket -SocketUrl \"ws://localhost:8387/\"\nforeach ($n in 1..10) { $socketServer.Send(@{n=Get-Random}) }\n$socketClient | Receive-Job -Keep"
4141
},
4242
{
4343
"Title": "EXAMPLE 2",

0 commit comments

Comments
 (0)