primus/mirage

compatibility with primus 6.0.2?

Closed this issue · 1 comments

Is it compatible with primus 6.0.2?

After upgrading both primus and mirage to latest, I am now getting "PrimusError: Middleware should be a function that accepts at least 2 args" at the line where I am using mirage

 primus.use( 'mirage',       require( 'mirage' ));

You have to use the plugin method. The breaking changes in version 6 are listed here.