Skip to content

@purista/natsbridge v2.0.5


PURISTA API / @purista/natsbridge / getTopicName

Function: getTopicName()

getTopicName(this, message): string

Defined in: natsbridge/src/topic/getTopicName.impl.ts:18

Calculates the NATS topic name for a message which should be sent. Something like: purista/message_type/instance_id/sender_name/sender_version/sender_target/eventname/receiver_name/receiver_version/receiver_target

Parameters

this

NatsBridge

message

EBMessage

the message to send

Returns

string

the NATS topic