Liam Curry
Liam Curry
Seconding this. Apollo's [GraphQL WebSocket](https://github.com/apollographql/subscriptions-transport-ws) server requires the protocol to be specified by the client, so it can't be used with Elm at the moment due to this issue.
FYI the `identity_rejected` error is created here: https://github.com/GetScatter/ScatterDesktop/blob/ef2248e1e6ac75fa653d82968474bfaf39456ac0/src/services/ApiService.js#L152
Hey sorry the book is a work-in-progress -- I'll be updating it with better instructions and working examples soon.
Yes sorry the book is very outdated. For now the best way to get started would be to look at the contracts in the `contracts` and `examples` folders.
I can confirm that applying the diff from @smoran's branch fixed this issue for me. Thanks!
I believe this would be difficult to implement without rewriting Yew to use `wasm-bindgen` instead of `stdweb`. Maybe it would be worth it to make that switch though? @DenisKolodin thoughts?
The only drawback to `surf` is it doesn't support aborting/dropping requests. https://github.com/rustasync/surf/issues/26#issuecomment-524636486
Basically a function that would take in any Elm AST record and output a string of Elm code. An AST by itself is good for introspection, but a printer is...
It would also be nice to have the ability to abort/drop requests in WASM environments. I'm not sure if this is possible with Hyper but I can think of a...
@yoshuawuyts Would it make sense to use XHR instead since that is available in all browsers? From what I can tell the only difference between the two is that `fetch`...