control-mergebox
This Meteor smart package extends publish endpoints with control of the mergebox for a given publish endpoint function.
Publish function's this
is extended with this.disableMergebox()
which when called will
disable mergebox for current publish endpoint.
By disabling mergebox one chooses to send possibly unnecessary data to clients (because they already have it) and not maintain on the server side images of clients' data, thus reducing CPU and memory load on servers.
Server side only.
Installation
meteor add peerlibrary:control-mergebox
Related projects
- meteor-streams – allows sending of messages from server to client without a mergebox, but then requires manual handling of those messages on the client, not using features already provided by Meteor