primus-responder icon indicating copy to clipboard operation
primus-responder copied to clipboard

Error following sample code

Open cheahkhing opened this issue 6 years ago • 1 comments

Hi,

I am trying to use the module following the sample code, but getting the follow error:

**throw new PrimusError('Middleware should be a function that accepts at least 2 args');
^

PrimusError: Middleware should be a function that accepts at least 2 args**

Is this expected? My environment: Windows 10 NodeJS: 8.9.3

  • primus 7.1.1
  • primus-responder - 1.0.4

Thanks

cheahkhing avatar Mar 06 '18 01:03 cheahkhing