js-data-rethinkdbdash-websocket
v2.0.17-1
Published
RethinkDB adapter for js-data.
Downloads
3
Maintainers
Readme
Forked from js-data-rethinkdb
A rethinkdb websocket adapter for js-data by using rethinkdbdash-websocket-client.
Usage
var JSData = require("js-data")
var RethinkdbAdapter = require("js-data-rethinkdb-websocket")
var store = new JSData.DS()
store.registerAdapter("rethinkdb", new RethinkdbAdapter({
db: "test",
host: "localhost",
port: 8015,
path: "/",
wsProtocols: ["binary"],
secure: false
}), {default: true})
var User = store.defineResource("users")