1.8.1 • Published 8 months ago

@moberries/rmqmci-ts v1.8.1

Weekly downloads
-
License
ISC
Repository
-
Last release
8 months ago

RMQMCI for TypeScript

This package exports abstract class ModuleInterface that could be used for creating new modules.

Creating a module class

class TestModule extends ModuleInterface {
  callback = (message: UnifiedMessage): void => {
    // handle incoming messages here
  }
}

Creating a module instance

const testModule = new TestModule(options)

Options object should contain information required for RabbitMQ connection.

{
  url: string          // RabbitMQ server url
  incoming: {
    queue: string      // Incoming queue name
  }
  outgoing: {
    exchange: string   // Outgoing exchange name
}
1.8.1

8 months ago

1.8.0

8 months ago

1.7.1

8 months ago

1.7.0

8 months ago

1.6.0

9 months ago

1.5.1

9 months ago

1.5.0

9 months ago

1.4.0

9 months ago

1.3.0

9 months ago

1.2.0

9 months ago

1.1.0

9 months ago

1.0.1

10 months ago

1.0.0

10 months ago