GitHub - derbyjs/racer-browserchannel

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Folders and files

NameName

Last commit message

Last commit date

Latest commit

History

58 Commits

Repository files navigation

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