Backchannel is supported through Go API. This is accessed using reverse proxy in NextJS when running the dev wallet in dev mode and is simply integrated as a part of the server API when shipped with Flow CLI.
Essentially the backchannel works as a key value store accessible to client (dev wallet) which updates the polling response based on its desired behaviour from the frontend (majority of logic is done in the Javascript FE realm).
Also this PR addresses host issue with regards to services always pointing to localhost:8701. And instead infers this information based on the URL used to access the dev wallet as this unblocks react native (need to be able to access dev wallet running on another host).
closes #197 #196
Backchannel is supported through Go API. This is accessed using reverse proxy in NextJS when running the dev wallet in dev mode and is simply integrated as a part of the server API when shipped with Flow CLI.
Essentially the backchannel works as a key value store accessible to client (dev wallet) which updates the polling response based on its desired behaviour from the frontend (majority of logic is done in the Javascript FE realm).
Also this PR addresses host issue with regards to services always pointing to
localhost:8701
. And instead infers this information based on the URL used to access the dev wallet as this unblocks react native (need to be able to access dev wallet running on another host).