5

My new client code in /client/main.coffee

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

In my original meteor code, the "system" is published and the "system" collection contains one doc. I can verified it with "System.find().count()".

On my new client browser, "System.find().count()" always return 0.

ZHANG Cheng
  • 125
  • 1
  • 6

1 Answers1

6

Please try Xingyun.subscribe "system"

jifeng.yin
  • 2,081
  • 1
  • 21
  • 19