Question regarding DDP connecting


Hi guys,

UPDATE: I solved this already. SORRY, I can’t seem to delete it.

I’ve have a real basic question about connecting a client meteor app to a server meteor app. I already have collections and methods defined on the server and would like to access them via another client app.

Take this code for example, which I found googling.

var remote = DDP.connect(‘’);
Items = new Meteor.Collection(‘items’, remote);

remote.subscribe(‘items’, function() {
var items = Items.find();
console.log(items.count()); // get 1

What does the ‘items’ actually correspond to in the server app. Do I link it to the published name on my server, or the name of the collection? I’m pretty confused about which name to use.

Thanks in advance