Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
real-time-observer
Advanced tools
Readme
Author : kingsae1004@gmail.com
real-time-observer is a plugin of node module to subscribe lots of databases. but this beta feature is available to use MongoDB
At first, Must initailize Observer class with config (currently support only for MongoDB)
const { RTMongoObserver } = require("./index.js");
const observer = new RTMongoObserver({
SERVER_TYPE: "MONGODB",
SERVER_URL: "",
SERVER_ID: "",
SERVER_PW: "",
MONGO_DATABASE: "",
MONGO_COLLECTION: "",
});
And then optionally you can define collection name. If not defined, load the config property (MONGO_COLLECTION)
observer.getCollection("COLLECTION_NAME");
This way is to subscribe observer (MongoDB collection)
// subscribe database
observer.subscribe(observer.getCollection()).then((data) => {
console.log(data);
});
I recommend unsubscribe after (unmount/disolve/disable ..) case
// Remove Listner
setTimeout(() => {
observer.unsubscribe(observer.getCollection());
}, 2000);
npm run test
FAQs
![RealTimeObserver](https://github.com/kingsae1/real-time-observer/blob/main/realtimeobserver.JPG?raw=true)
The npm package real-time-observer receives a total of 0 weekly downloads. As such, real-time-observer popularity was classified as not popular.
We found that real-time-observer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.