Security News
NIST Misses 2024 Deadline to Clear NVD Backlog
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
cozy-realtime-adapter
Advanced tools
A simple binder from cozy-data-system's events to backbone models
Helper library for interaction with cozy-data-system data changes notifications
##Server-Side : Axon -> Socket.io
Usage :
americano.start(options, function(app, server){
app.server = server
RealtimeAdapter = require('cozy-realtime-adapter')
// notification events should be proxyed to client
realtime = RealtimeAdapter(app, ['notification.*']);
// custom callback for alarm events
realtime.on('alarm.*', function(event, msg){
// event = 'alarm.update' or 'alarm.create' or 'alarm.delete'
// msg = id of the updated alarm
});
});
##Client-Side : Socket.io -> Backbone Models manipulations
Basic Usage :
<script src="cozy-realtime-adapter.js"></script>
class SocketListener extends CozySocketListener
models:
'notification': Notification
events: [
'notification.create', 'notification.update', 'notification.delete'
]
onRemoteCreate: (model) ->
@collection.add model if # should model be in @collection ?
onRemoteDelete: (model) ->
@collection.remove model
sl = new SocketListener()
sl.watch 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:
FAQs
A simple binder from cozy-data-system's events to backbone models
The npm package cozy-realtime-adapter receives a total of 0 weekly downloads. As such, cozy-realtime-adapter popularity was classified as not popular.
We found that cozy-realtime-adapter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.