totaljs / flow

Flow
MIT License
538 stars 121 forks source link

Communication with Vuejs and Totaljs. #71

Closed Rahul139-stack closed 2 years ago

Rahul139-stack commented 2 years ago

Hi peter Sirka, I'm using Total.js flow inside my Vue Project. I'd like to know, how can I communicate between Vue.js & Total.Js flow. I'm running flow inside an iframe & after getting a response from an API inside flow, I want to pass the response to the Vue (Vuex Store). As I can't access browser storage inside flow, Is there any other to communicate?

petersirka commented 2 years ago

Hi @Rahul139-stack, I don't see any problem to connect e.g. your Vue app with the Flow via custom API (designed in the Flow directly). Maybe you can create a WebSocket connection for obtaining real-time data, or you can use standard AJAX requests.

Rahul139-stack commented 2 years ago

Thank you @petersirka