adonis-pusher

1.0.4 • Public • Published

adonis-pusher

Pusher provider for AdonisJS

Install

adonis install adonis-pusher

You need to add the provider to AdonisJS at start/app.js:

const providers = [
   ...
   'adonis-pusher/providers/Pusher'
];

And in your .env file

PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_SECRET_KEY=

then you can simply call it from within controllers etc:

const Pusher = use('Pusher');

Package Sidebar

Install

npm i adonis-pusher

Weekly Downloads

4

Version

1.0.4

License

MIT

Unpacked Size

4.79 kB

Total Files

6

Last publish

Collaborators

  • pedroperafan