tock / ai.tock.bot.api.client / TockClientBus / withMessage

withMessage

fun withMessage(connectorType: ConnectorType, messageProvider: () -> ConnectorMessage): ClientBus (source)

Adds the specified ConnectorMessage to the bus context if the targetConnectorType is compatible.

fun withMessage(connectorType: ConnectorType, connectorId: String, messageProvider: () -> ConnectorMessage): ClientBus (source)

Adds the specified ConnectorMessage to the bus context if the targetConnectorType and connectorId is compatible.