com.r3corda.node.services.network / InMemoryMessagingNetwork / InMemoryMessaging / createMessage

# createMessage

`fun createMessage(topic: String, sessionID: Long, data: ByteArray): Message`
Overrides MessagingService.createMessage
`fun createMessage(topicSession: TopicSession, data: ByteArray): Message`
Overrides MessagingService.createMessage

Returns the given (topic & session, data) pair as a newly created message object.