1.9.0 • Published 1 year ago

@moberries/rmqmci-ts v1.9.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year 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.2

1 year ago

1.9.0

1 year ago

1.8.1

2 years ago

1.8.0

2 years ago

1.7.1

2 years ago

1.7.0

2 years ago

1.6.0

2 years ago

1.5.1

2 years ago

1.5.0

2 years ago

1.4.0

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago