How to use the smqp.getRoutingKeyPattern function in smqp

To help you get started, we’ve selected a few smqp examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github paed01 / bpmn-elements / src / activity / Activity.js View on Github external
function popFormattingStart(routingKey) {
      for (let i = 0; i < pendingFormats.length; i++) {
        const pendingFormat = pendingFormats[i];
        if (getRoutingKeyPattern(pendingFormat.content.endRoutingKey).test(routingKey)) {
          logger.debug(`<${id}> completed formatting ${fields.routingKey} message content with formatter ${routingKey}`);
          pendingFormats.splice(i, 1);
          pendingFormat.ack();
          break;
        }
      }
    }
  }

smqp

Synchronous message queueing package

MIT
Latest version published 1 month ago

Package Health Score

62 / 100
Full package analysis