1.1.6 • Published 3 years ago

@shankarregmi/common v1.1.6

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

Common Package For TypeScript

  • AMQP Client (rabbitMQ Wrapper)

    • initialize(optioins)

          const rabbitMQClient = new AMQPClient({});
      
          // Connect to rabbitMQ broker and creates a transmission channel
          rabbitMQClient.initialize();
    • registerRPCHandlers(handlers: {})

          import { createUsers, getUsers } from "./userController";
      
          rabbitMQClient.registerRPCHandlers({
              createUsers,
              getUsers
          });
    • callRPC({})

          rabbitMQClient.callRPC({
              targetQueue: 'users',
              method: 'getUsers',
              params: {
                  active: true,
              }
          });
1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago