How to do client-server request-response messaging


Hi all. I’m new to Meteor. I’m trying to build an application where every connected client works within its own context, i.e. no data is shared between clients. I just need near-real-time request-response communication (like RPC) between each connected client and the server.

I see that Meteor has publish/subscribe. Is this what I should use to implement RPC, with both server and client being publishers and subscribers, or is there a more suitable mechanism?


pub/sub is more useful as a server-to-client paradigm. RPC is provided for by Meteor.methods and Meteor.calls.


Thanks. Indeed I see that Meteor methods are what I’m looking for.

Now, the only thing I’m missing is a way to embed this functionality into an existing web application. I already have a working web application, and I need to add some real-time backend functionality to it. Is there a way to do it with Meteor?