A demo for DDP Client using Websockets API
- Following DDP Specification.
- Using WebSocket APIs for communicating with a DDP Server.
- Implemention in pure JS, no extra libraries needed.
For this demo, I used Rocket.Chat which contains a DDP Server. I created a user wdc/secret
for authentication.
npm install
DEBUG=ws-ddp-client:* PORT=8080 npm start
Have a look:
- Implementation:
public/javascripts/wdc.js
- client code:
public/javascripts/index.js
This project was bootstrapped with express-generator
Inspired by https://github.com/hharnisc/node-ddp-client