Connect meteor frontend to multiple backends


#1

I have seen several examples of using ddp connect url to connect multiple different meteor frontends to one backend meteor app.
I would now need the opposite case: Connecting one frontend to multiple meteor backends:

I have a raspberry pi that should have one meteor backend app and a regular webapp that should be the other meteor backend & frontend. This app should then be able to connect to the raspberry pi meteor app. It does not require authentication and I would like to use meteors pub sub instead of some restify solution.

If this does not work I would probably have to use something like adonisJS for the two backends and vuejs spa for the frontend.


#2

get the ip or url where you want to connect, and do DDP.connect(ip/url). that simple https://docs.meteor.com/api/connections.html#DDP-connect