| external help file | Pup.dll-Help.xml |
|---|---|
| Module Name | Pup |
| online version | |
| schema | 2.0.0 |
Lists WebSocket connections and their message frames.
Get-PupWebSocket -Page <PupPage> [-Url <String>] [-Active] [-ProgressAction <ActionPreference>]
[<CommonParameters>]
Returns all WebSocket connections made by the page, including connection state, URL, and all sent/received message frames. Useful for testing real-time APIs.
$websockets = Get-PupWebSocket -Page $page
$websockets | Format-List Url, State, @{N="FrameCount";E={$_.Frames.Count}}
Shows all WebSocket connections with their state and frame count.
$ws = Get-PupWebSocket -Page $page | Select-Object -First 1
$ws.Frames | Format-Table Direction, Timestamp, PayloadData
Displays all messages sent and received through the WebSocket.
$active = Get-PupWebSocket -Page $page -Active
$active | Where-Object { $_.Url -like "*chat*" }
Gets only open WebSocket connections and filters for chat endpoints.
Only show active (open) connections
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThe page to get WebSocket connections from
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: FalseFilter by URL pattern (substring match)
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.