From d8a9481d9fe35cb3c9ffd1fc24c4484c7f273e7a Mon Sep 17 00:00:00 2001 From: D1plo1d Date: Wed, 31 Mar 2021 19:40:32 -0400 Subject: [PATCH] fix: Close, Ping, and Pong websocket messages should not be parsed as GraphQL --- integrations/warp/src/subscription.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/integrations/warp/src/subscription.rs b/integrations/warp/src/subscription.rs index ef73c051..7b71df6c 100644 --- a/integrations/warp/src/subscription.rs +++ b/integrations/warp/src/subscription.rs @@ -100,6 +100,9 @@ where ws_receiver .take_while(|msg| future::ready(msg.is_ok())) .map(Result::unwrap) + .filter(|msg | { + future::ready(msg.is_text() || msg.is_binary()) + }) .map(ws::Message::into_bytes), initializer, protocol,