Home

Awesome

racer-browserchannel

Adds browserchannel socket support to Racer models

Usage

In server code

const options = {};
const racerBrowserChannel = require('@derbyjs/racer-browserchannel');
const racerBrowserChannel = racerBrowserChannel(backend, options}
express.use(browserchannel);

In client (browser) app

const options = {};
const racerBrowserChannel = require('@derbyjs/racer-browserchannel/lib/browser');
racerBrowserChannel(options);

For options see `browserchannel API docs