async-graphql / examples

217 stars 54 forks source link

Actix token-from-header subscription example not work #53

Closed huahouye closed 2 years ago

huahouye commented 2 years ago

run cargo run under actix-web/token-from-header folder,open http://localhost:8080 with http header

{
  "Token": "123456"
}

when try to subscribe to graphql get an error like this:

{
  "error": "Could not connect to websocket endpoint ws://localhost:8000/ws. Please check if the endpoint url is correct."
}

I am new to async-graphql, donnot know how to make this example work.

hffmnn commented 9 months ago

Did you make it work? Can you describe what you did?