How to publish to a client-only collection in Meteor

In Meteor, a client-only collection is a database that is kept only on client side, without being synced with server (as a normal collection would be). Because the collection is not automatically synced, we will need to manually ‘push’ changes from server to client every time we want to publish something new.

For better illustration, let’s say we want to write a simple (and silly) app that retrieve and display current server’s time.

We start by defining a client-only collection:

Continue reading