Hello,
I hope you're doing well, allow me to just get right into it.
Since the goal is to sent data from A to B whenever A has a new information then we should do things the other way around.
B will have to send a Fetch request to A asking for Data. A's job would be to always reply back with the newest data.
Whenever B asks for data, it'll get the newest data from A. All we have to do now is tell B to do this in a loop, over and over again, to keep things fully updated.
Since both APIs are already installed, our job would be to simply use CORS to allow B, in the first place, to request data from A. Without CORS, the client's browser will block the request since B is fetching resources from a different domain, the browser does this for security Reasons.
Once CORS is setup, all we have to do is create Javascript code, without using any libraries, that would use the fetch API to retrieve data from A and load it on screen. We make sure our Javascript code is always running in a loop.
This is the best solution for something like this.
I know what I'm doing and I'm good at it, I've worked on various big projects here on Freelancers and all my clients left me great constructive feedback, feel free to check it. Let me handle this for you, you won't regret it and you'll only have to pay me after I deliver everything.
Thanks for reading,
Mario Adabachy.