Embedding API Reference / Modules / exposed-api / <internal> / MessageHandler

# Class: MessageHandler

exposed-api.<internal>.MessageHandler

# Table of contents

# Constructors

# Methods

# Constructors

# constructor

new MessageHandler(side, incomingMessageBus, outgoingMessageBus, messageExecution): MessageHandler

# Parameters

Name Type
side CommunicationSide
incomingMessageBus IncomingMessageBus
outgoingMessageBus Nullable<OutgoingMessageBus>
messageExecution Nullable<MessageExecution>

# Returns

MessageHandler

# Defined in

src/configurator/embedding/message-handler.ts:44 (opens new window)

# Methods

# sendMessage

sendMessage(message, args?): Promise<any>

# Parameters

Name Type Default value
message string undefined
args any[] []

# Returns

Promise<any>

# Defined in

src/configurator/embedding/message-handler.ts:68 (opens new window)


# setMessageExecution

setMessageExecution(fun): void

# Parameters

Name Type
fun MessageExecution

# Returns

void

# Defined in

src/configurator/embedding/message-handler.ts:64 (opens new window)


# setOutgoingMessageBus

setOutgoingMessageBus(outgoingMessageBus): void

# Parameters

Name Type
outgoingMessageBus OutgoingMessageBus

# Returns

void

# Defined in

src/configurator/embedding/message-handler.ts:60 (opens new window)