send

@Suspendable
abstract fun send(@NotNull channelName: String, @NotNull message: String)

Sends a message through a named channel.

Parameters

channelName

The name of the channel the message should be sent through.

message

The contents of the message to be sent.

Throws

CordaRuntimeException

if the channel does not exist.


@Suspendable
abstract fun send(@NotNull channelName: String, @NotNull messageId: String, @NotNull message: String)

Sends a message with identifier through a named channel.

Parameters

channelName

The name of the channel the message should be sent through.

messageId

An ID of the message to be sent.

message

The contents of the message to be sent.

Throws

CordaRuntimeException

if the channel does not exist.