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.
ddp-server-reactive
Advanced tools
Readme
DDP-Server-Reactive is a nodejs based DDP Server.
// Create a server listening on the default port 3000
var server = new DDPServer();
// Create a reactive collection
// All the changes below will automatically be sent to subscribers
var todoList = server.publish("todolist");
// Add items
todoList[0] = { title: "Cook dinner", done: false };
todoList[1] = { title: "Water the plants", done: true };
// Change items
todoList[0].done = true;
// Remove items
delete todoList[1]
// Add methods
server.methods({
test: function() {
return true;
}
});
You can then connect to it using a ddp client such as ddp
Create a server with a different port:
var server = new DDPServer({ port: 80 });
Create a server using an existing http server so you use the same IP number for DDP and for web:
var app = express();
app.server = http.createServer(app);
var server = new DDPServer({ httpServer: app.server });
FAQs
A ddp server for nodejs with reactive collections
The npm package ddp-server-reactive receives a total of 7 weekly downloads. As such, ddp-server-reactive popularity was classified as not popular.
We found that ddp-server-reactive 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.