如何正确使用Meteor.connect()连接其他Meteor服务器

如何正确使用Meteor.connect()连接其他Meteor服务器,meteor,Meteor,我在/client/main.coffee中的新客户端代码 Xingyun = Meteor.connect "localhost:3000" System = new Meteor.Collection "system", Xingyun Meteor.subscribe "system" 在我最初的meteor代码中,“系统”被发布,“系统”集合包含一个文档。我可以用“System.find().count()”来验证它 在我的新客户端浏览器上,“System.find().count()

我在/client/main.coffee中的新客户端代码

Xingyun = Meteor.connect "localhost:3000"
System = new Meteor.Collection "system", Xingyun
Meteor.subscribe "system"
在我最初的meteor代码中,“系统”被发布,“系统”集合包含一个文档。我可以用“System.find().count()”来验证它


在我的新客户端浏览器上,“System.find().count()”始终返回0。

请尝试
Xingyun.subscribe“System”

你说得对!我现在应该更仔细地阅读这份文件