Options
All
  • Public
  • Public/Protected
  • All
Menu

Module @tmorin/ceb-messaging-moleculer

Index

Type aliases

MoleculerEventBusOptions

MoleculerEventBusOptions: { moleculerGroup: string; publicationMode: "balanced" | "broadcast" }

Type declaration

  • moleculerGroup: string
  • publicationMode: "balanced" | "broadcast"

MoleculerExecuteActionOptions

MoleculerExecuteActionOptions: ExecuteActionOptions & CallingOptions

Variables

MoleculerGatewaySymbol

MoleculerGatewaySymbol: typeof MoleculerGatewaySymbol = ...

The symbol used to register MoleculerGateway.

example

Creation and destruction

import { Gateway } from "@tmorin/ceb-messaging-core"
import { MoleculerGateway } from "@tmorin/ceb-messaging-moleculer"
const gateway : Gateway = MoleculerGateway.create()
gateway.dispose().catche(e => console.error(e))
example

Global instance

import { MessageBuilder } from "@tmorin/ceb-messaging-core"
import { MoleculerGateway } from "@tmorin/ceb-messaging-moleculer"
const event = MessageBuilder.event("EventA").build()
MoleculerGateway.GLOBAL.events.publish(event)

Generated using TypeDoc