UNPKG

@mixxtor/adonisjs-pusher

Version:

AdonisJS provider for Pusher real-time messaging

33 lines (32 loc) 726 B
export default class PusherProvider { app; constructor(app) { this.app = app; } /** * Register bindings to the container */ register() { this.app.container.singleton('pusher', async () => { const { default: Pusher } = await import('pusher'); const config = this.app.config.get('pusher'); return new Pusher(config); }); } /** * The container bindings have booted */ async boot() { } /** * The application has been booted */ async start() { } /** * The process has been started */ async ready() { } /** * Preparing to shut down the app */ async shutdown() { } }