Neurotic Pumpkin Murderer

    This package has been deprecated

    Author message:

    this package has been deprecated

    lesswork-pusher

    0.0.3 • Public • Published

    lesswork-pusher

    This is a pusher provider for the lesswork-framework.

    Installation

    npm i --save lesswork-pusher

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

    const providers = [
      ...
      'lesswork-pusher/providers/PusherProvider',
    ];
     
    const aliases = {
      ...
      Pusher: 'Lesswork/Pusher',
    };

    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 env settings above in your env.js

    const 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" });

    Keywords

    none

    Install

    npm i lesswork-pusher

    DownloadsWeekly Downloads

    1

    Version

    0.0.3

    License

    MIT

    Unpacked Size

    3.15 kB

    Total Files

    4

    Last publish

    Collaborators

    • askedio