【问题标题】:How to properly use Meteor.connect() to connect with another Meteor server如何正确使用 Meteor.connect() 连接另一个 Meteor 服务器
【发布时间】:2012-08-07 13:06:22
【问题描述】:

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

Xingyun = Meteor.connect "localhost:3000"
System = new Meteor.Collection "system", Xingyun
Meteor.subscribe "system"

在我的原始流星代码中,“系统”已发布,“系统”集合包含一个文档。我可以用“System.find().count()”验证它。

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

【问题讨论】:

    标签: meteor


    【解决方案1】:

    请尝试Xingyun.subscribe "system"

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-12-19
    • 2023-03-03
    • 1970-01-01
    • 2018-12-15
    • 2017-12-17
    • 2012-06-10
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多