0

我想知道流星订阅是如何工作的。假设我们发布了多个项目

Meteor.publish("rooms", function () {..});
Meteor.publish("keys", function () {..});
Meteor.publish("cars", function () {..});
Meteor.publish("assets", function () {..});
Meteor.publish("employees", function () {..});
Meteor.publish("inventory", function () {..});

以及客户端集中的相应订阅。

Meteors 反应性确保当更新新记录时,客户端也会实时更新。所以这意味着有一个持久的连接到用户

这些中的每一个是否都在服务器和客户端之间为所有数据使用了一个持久连接,或者每个都有自己的(websocket/comet/..)连接(总共 6 个?)。

4

1 回答 1

1

There is one livedata stream connection from the web page to the server. The connection is shared between all subscriptions and method calls.

于 2013-02-04T21:19:33.703 回答