A simple binder from cozy-data-system's events to backbone models
Helper library for interaction with cozy-data-system data changes notifications
americanostartoptionsappserver = serverRealtimeAdapter = require'cozy-realtime-adapter'// notification events should be proxyed to clientrealtime = RealtimeAdapterapp 'notification.*';// custom callback for alarm eventsrealtimeon'alarm.*'// event = 'alarm.update' or 'alarm.create' or 'alarm.delete'// msg = id of the updated alarm;;
Basic Usage :
models:'notification': Notificationevents:'notification.create''notification.update''notification.delete':@collectionadd model if # should model be in @collection ?:@collectionremove modelsl =slwatch myNotificationCollection
For more complex usages, refer to the code of cozy applications
Cozy is a platform that brings all your web services in the same private space. With it, your web apps and your devices can share data easily, providing you with a new experience. You can install Cozy on your own hardware where no one profiles you. You install only the applications you want. You can build your own one too.
You can reach the Cozy community via various support: