fix: Close, Ping, and Pong websocket messages should not be parsed as GraphQL

This commit is contained in:
D1plo1d 2021-03-31 19:40:32 -04:00
parent 77b86a0fe7
commit d8a9481d9f

View File

@ -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,