Skip to content

As a library user I want to add state changed listeners to connection, publisher or consumer #40

@l4mby

Description

@l4mby

The user should be able to add listeners on a connection to check the changing of a connection state

const connection = await environment.createConnection({ changeStateListener: ( sender, fromState, toState, error) => /*...*/ })

Same for a publisher

const publisher = await connection.createPublisher({ 
          queue: { name: "test-queue" },
          changeStateListener: ( sender, fromState, toState, error) => /*...*/ 
})

Same for a consumer

const consumer = await connection.createConsumer(
          "test-queue",
          { 
              messageHandler: (msg) => /*...*/,
              changeStateListener: ( sender, fromState, toState, error) => /*...*/ 
          }
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    todoNext feature to implement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions