Skip to content

Commit 15c5e36

Browse files
committed
cherrypick webSocketReceiveResult default case from pr 272
1 parent c62301b commit 15c5e36

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/GraphQL.Client/Websocket/GraphQLHttpWebSocket.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -578,8 +578,9 @@ private async Task<WebsocketMessageWrapper> ReceiveWebsocketMessagesAsync()
578578
Debug.WriteLine($"Connection closed by the server.");
579579
throw new Exception("Connection closed by the server.");
580580

581-
case WebSocketMessageType.Binary:
582-
throw new NotSupportedException("binary websocket messages are not supported");
581+
default:
582+
throw new NotSupportedException($"Websocket message type {webSocketReceiveResult.MessageType} not supported.");
583+
583584
}
584585
}
585586
catch (Exception e)

0 commit comments

Comments
 (0)