I'm trying to use pusher.subscribe() on the server side, but Pusher is only for client side.
I found this: https://github.com/pusher/pusher-http-node
Which allows us to set up a pusher for the server side. However, the readme is outdated and I can't set it up.
Running this command
npm install pusher --prefix cloud/modules
Only creates: cloud/modules/etc and cloud/modules/node_modules.
This means I cant run
$ cd cloud/modules/pusher
$ npm run parse-build
Please help!
try to use
cd cloud/modules/node_modules/pusherand thennpm run parse-buildit will create build for Parse cloudInstall webpack using
npm install -g webpackglobally or locally to install webpack local for the projectnpm install -Dto install all dev dependencies in yourcd cloud/modules/node_modules/pusherdirectory.It is recommended to install webpack locally so that you need not to stick to a particular version for different projects.