Fix websocket connection in warp subscriptions example (#583)
This commit is contained in:
parent
cab6decdbc
commit
3b465cbf04
1 changed files with 4 additions and 0 deletions
|
@ -169,6 +169,10 @@ async fn main() {
|
|||
})
|
||||
},
|
||||
))
|
||||
.map(|reply| {
|
||||
// TODO#584: remove this workaround
|
||||
warp::reply::with_header(reply, "Sec-WebSocket-Protocol", "graphql-ws")
|
||||
})
|
||||
.or(warp::post()
|
||||
.and(warp::path("graphql"))
|
||||
.and(qm_graphql_filter))
|
||||
|
|
Loading…
Reference in a new issue