Skip to content

Commit 3b465cb

Browse files
authored
Fix websocket connection in warp subscriptions example (#583)
1 parent cab6dec commit 3b465cb

File tree

1 file changed

+4
-0
lines changed
  • examples/warp_subscriptions/src

1 file changed

+4
-0
lines changed

examples/warp_subscriptions/src/main.rs

+4
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,10 @@ async fn main() {
169169
})
170170
},
171171
))
172+
.map(|reply| {
173+
// TODO#584: remove this workaround
174+
warp::reply::with_header(reply, "Sec-WebSocket-Protocol", "graphql-ws")
175+
})
172176
.or(warp::post()
173177
.and(warp::path("graphql"))
174178
.and(qm_graphql_filter))

0 commit comments

Comments
 (0)