net.corda.core.messaging / MessagingService / createMessage

createMessage

abstract fun createMessage(topicSession: TopicSession, data: ByteArray, uuid: UUID = UUID.randomUUID()): Message

Returns an initialised Message with the current time, etc, already filled in.

Parameters

topicSession - identifier for the topic and session the message is sent to.