Skip to content

Commit

Permalink
feat: Get-WebSocket -Binary ( Fixes #31 )
Browse files Browse the repository at this point in the history
Returning only non-zero bytes
  • Loading branch information
James Brundage committed Dec 4, 2024
1 parent 7ef90bc commit 71e97dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Commands/Get-WebSocket.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ function Get-WebSocket {
try {
$webSocketMessage =
if ($Binary) {
$Buf
$Buf -gt 0
} elseif ($RawText) {
$OutputEncoding.GetString($Buf, 0, $Buf.Count)
} else {
Expand Down

0 comments on commit 71e97dc

Please sign in to comment.