/ws-ddp-client

Demo for DDP Client using Websockets API

Primary LanguageJavaScript

WebSocket DDP Client

A demo for DDP Client using Websockets API

Features

DDP server provision

For this demo, I used Rocket.Chat which contains a DDP Server. I created a user wdc/secret for authentication.

Run

npm install
DEBUG=ws-ddp-client:* PORT=8080 npm start

How to use

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