File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -234,6 +234,13 @@ If set, will output the raw bytes that come out of the WebSocket.
234
234
| ----------| --------| --------| -------------| ---------------------------------------|
235
235
| ` [Switch] ` | false | named | false | RawByte<br />RawBytes<br />Bytes<br />Byte|
236
236
237
+ #### ** SubProtocol**
238
+ The subprotocol used by the websocket. If not provided, this will default to ` json ` .
239
+
240
+ | Type | Required| Position| PipelineInput|
241
+ | ----------| --------| --------| -------------|
242
+ | ` [String] ` | false | named | false |
243
+
237
244
#### ** WatchFor**
238
245
If set, will watch the output of a WebSocket job for one or more conditions.
239
246
The conditions are the keys of the dictionary, and can be a regex, a string, or a scriptblock.
@@ -293,5 +300,5 @@ RunspacePools allow you to limit the scope of the handler to a pool of runspaces
293
300
294
301
### Syntax
295
302
``` PowerShell
296
- 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>] [-PSTypeName <String[]>] [-Maximum <Int64>] [-ConnectionTimeout <TimeSpan>] [-Runspace <Runspace>] [-RunspacePool <RunspacePool>] [<CommonParameters>]
303
+ 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] [-SubProtocol <String>] [- WatchFor <IDictionary>] [-TimeOut <TimeSpan>] [-PSTypeName <String[]>] [-Maximum <Int64>] [-ConnectionTimeout <TimeSpan>] [-Runspace <Runspace>] [-RunspacePool <RunspacePool>] [<CommonParameters>]
297
304
```
You can’t perform that action at this time.
0 commit comments