Skip to content

Commit 2ba3410

Browse files
author
James Brundage
committed
feat: Get-WebSocket -Binary ( Fixes #31 )
1 parent e9572ae commit 2ba3410

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Commands/Get-WebSocket.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,9 @@ function Get-WebSocket {
247247

248248
try {
249249
$webSocketMessage =
250-
if ($Raw) {
250+
if ($Binary) {
251+
$Buf
252+
} elseif ($RawText) {
251253
$OutputEncoding.GetString($Buf, 0, $Buf.Count)
252254
} else {
253255
$JS = $OutputEncoding.GetString($Buf, 0, $Buf.Count)

0 commit comments

Comments
 (0)