Send PodeWebSocket - mdaneri/Pode GitHub Wiki
external help file: Pode-help.xml Module Name: Pode online version: PodeType: WebSockets schema: 2.0.0
Send a message back to a WebSocket connection.
Send-PodeWebSocket [[-Name] <String>] [[-Message] <Object>] [[-Depth] <Int32>] [[-Type] <String>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
Send a message back to a WebSocket connection.
Send-PodeWebSocket -Name 'Example' -Message @{ message = 'Hello, there' }
An optional Depth to parse any JSON or XML messages. (default: 10)
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: 10
Accept pipeline input: False
Accept wildcard characters: False
The Message to send. Can either be a raw string, hashtable, or psobject. Non-strings will be parsed to JSON, or the WebSocket's ContentType.
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The Name of the WebSocket connection (optional if in the scope where $WsEvent is available).
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
An optional message Type. (default: Text)
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value: Text
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.