| external help file | Module Name | online version | schema |
|---|---|---|---|
Pup.dll-Help.xml |
Pup |
2.0.0 |
Sends a message through an active WebSocket connection.
Send-PupWebSocketMessage -Page <PupPage> -Message <String> [-Url <String>] [-ProgressAction <ActionPreference>]
[<CommonParameters>]
Injects a message into an open WebSocket connection on the page. Useful for testing WebSocket-based APIs and real-time features.
Send-PupWebSocketMessage -Page $page -Message '{"action":"ping"}'
Sends a JSON message through the first available WebSocket.
Send-PupWebSocketMessage -Page $page -Message '{"cmd":"admin"}' -Url "api.target.com"
Sends a message to a specific WebSocket matching the URL pattern.
The message to send through the WebSocket
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThe page containing the WebSocket connection
Type: PupPage
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
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: FalseWebSocket URL pattern to target (if multiple connections exist)
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.