npm.io
2.0.2 • Published 3 years ago

@luckbox/ipc-messenger

Licence
ISC
Version
2.0.2
Deps
7
Size
17 kB
Vulns
0
Weekly
0

Build Status

Coverage Status

Usage

const ipcMessenger = new RabbitMQIPCMessenger({
  instance: 'test',
  amqp: {
    connectionOpts: {},
    httpUrl: 'http://localhost:15672'
  }
});

Methods

  • join() - Joins the room
  • getOtherInstances() - Retrieves an array of the other participants in the room (room is passed in the constructor)
  • send(message: Message) - Sends a message to the rest of the participants in the room