Skip to content

Commit d967dbd

Browse files
StartAutomatingStartAutomating
authored andcommitted
feat: Get-WebSocket -Binary ( Fixes #31 )
1 parent b00340c commit d967dbd

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

docs/Get-WebSocket.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,12 +202,19 @@ If set, will watch the output of the WebSocket job, outputting results continuou
202202
|`[Switch]`|false |named |false |Tail |
203203

204204
#### **RawText**
205-
If set, will output the raw text of the WebSocket job.
205+
If set, will output the raw text that comes out of the WebSocket.
206206

207207
|Type |Required|Position|PipelineInput|Aliases|
208208
|----------|--------|--------|-------------|-------|
209209
|`[Switch]`|false |named |false |Raw |
210210

211+
#### **Binary**
212+
If set, will output the raw bytes that come out of the WebSocket.
213+
214+
|Type |Required|Position|PipelineInput|Aliases |
215+
|----------|--------|--------|-------------|---------------------------------------|
216+
|`[Switch]`|false |named |false |RawByte<br/>RawBytes<br/>Bytes<br/>Byte|
217+
211218
#### **WatchFor**
212219
If set, will watch the output of a WebSocket job for one or more conditions.
213220
The conditions are the keys of the dictionary, and can be a regex, a string, or a scriptblock.
@@ -259,5 +266,5 @@ RunspacePools allow you to limit the scope of the handler to a pool of runspaces
259266

260267
### Syntax
261268
```PowerShell
262-
Get-WebSocket [[-WebSocketUri] <Uri>] [-Handler <ScriptBlock>] [-Variable <IDictionary>] [-Name <String>] [-InitializationScript <ScriptBlock>] [-BufferSize <Int32>] [-OnConnect <ScriptBlock>] [-OnError <ScriptBlock>] [-OnOutput <ScriptBlock>] [-OnWarning <ScriptBlock>] [-Watch] [-RawText] [-WatchFor <IDictionary>] [-TimeOut <TimeSpan>] [-Maximum <Int64>] [-ConnectionTimeout <TimeSpan>] [-Runspace <Runspace>] [-RunspacePool <RunspacePool>] [<CommonParameters>]
269+
Get-WebSocket [[-WebSocketUri] <Uri>] [-Handler <ScriptBlock>] [-Variable <IDictionary>] [-Name <String>] [-InitializationScript <ScriptBlock>] [-BufferSize <Int32>] [-OnConnect <ScriptBlock>] [-OnError <ScriptBlock>] [-OnOutput <ScriptBlock>] [-OnWarning <ScriptBlock>] [-Watch] [-RawText] [-Binary] [-WatchFor <IDictionary>] [-TimeOut <TimeSpan>] [-Maximum <Int64>] [-ConnectionTimeout <TimeSpan>] [-Runspace <Runspace>] [-RunspacePool <RunspacePool>] [<CommonParameters>]
263270
```

0 commit comments

Comments
 (0)