dmapper / sharedb-wsbus-pubsub

Sharedb PubSub module based on ws-bus (websocket bus)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sharedb-wsbus-pubsub

ShareDb PubSub module based on ws-bus

js-standard-style

Installation

npm install sharedb-wsbus-pubsub

Usage

const racer = require('racer')
const shareDbMongo = require('sharedb-mongo')
const wsbusPubSub = require('sharedb-wsbus-pubsub')

const mongo = shareDbMongo('mongodb://localhost:27017')
const pubsub = wsbusPubSub('ws://localhost:3000')

const backend = racer.createBackend({
  db: mongo,
  pubsub: pubsub
})

License

MIT

About

Sharedb PubSub module based on ws-bus (websocket bus)


Languages

Language:JavaScript 100.0%