Skip to content

Connectum API Reference / toAmqpPattern

Function: toAmqpPattern()

toAmqpPattern(pattern): string

Defined in: AmqpAdapter.ts:35

Convert an EventBus wildcard pattern to an AMQP routing key pattern.

EventBus uses NATS-style wildcards:

  • * matches a single token (same in AMQP topic exchange)
  • > matches one or more tokens (AMQP uses #)

Parameters

pattern

string

EventBus wildcard pattern

Returns

string

AMQP routing key pattern