0.0.10 • Published 1 year ago

@n0tify/client v0.0.10

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

@n0tify/client

  • connects to socket, RabbitMQ, Kafka, redis or other exchange service
  • dispatches message to multiple channels

Client usage

import { Client } from '@n0tify/client';

...

const transport = ...;

const emailChannel = ...;

const client = new Client({
  transport,
  channels: [
    emailChannel
  ]
});

await client.connect();

await client.send({
  pattern: 'user.create',
  channels: [
    {
      channel: 'email',
      data: ... 
    }
  ],
  context: {
    username: 'Random username'
  }
});

Further information

CLICK HERE for information about channels and transports

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.3

1 year ago