Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 648 Bytes

README.md

File metadata and controls

23 lines (17 loc) · 648 Bytes

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