Does Meteor auto close subscriptions on disconnect?

When a user with active subscriptions closes their window, and computation.stop() is not called, will Meteor eventually close these subscriptions and clear the documents from memory (for instance, when the websocket ping fails)?

Yes. As soon as a connection is closed, which should be pretty quick after a window is closed, meteor will call the stop handle of all subscriptions on the server.

2 Likes