@lessworkjs/pusher

0.0.9 • Public • Published

Lessworkjs/Adonisjs Pusher

This is a pusher provider for the lessworkjs and adonisjs frameworks.

Installation

npm i @lessworkjs/pusher

Register the provider and alias in your config/app.js file.

const providers = [
  ...
  '@lessworkjs/pusher/providers/PusherProvider',
];

Create config/pusher.js

module.exports = {
  appId: env('PUSHER_APP_ID'),
  key: env('PUSHER_APP_KEY'),
  secret: env('PUSHER_APP_SECRET'),
  cluster: env('PUSHER_APP_CLUSTER')
};

Define the settings above in your .env

PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET= 
PUSHER_APP_CLUSTER=

Usage

See pusher for full usage information.

const Pusher = use('Pusher');

Pusher.trigger('channel-1', 'test_event', { message: "hello world" });

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.9
    16
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.9
    16
  • 0.0.8
    0
  • 0.0.7
    0
  • 0.0.5
    0

Package Sidebar

Install

npm i @lessworkjs/pusher

Weekly Downloads

16

Version

0.0.9

License

MIT

Unpacked Size

3.21 kB

Total Files

4

Last publish

Collaborators

  • askedio