sendMessage

expect fun sendMessage(threadId: String, publicMeta: ByteArray, privateMeta: ByteArray, data: ByteArray): String

Sends a message in a Thread.

Return

ID of the new message

Parameters

threadId

ID of the Thread to send message to

publicMeta

public message metadata

privateMeta

private message metadata

data

content of the message

Throws

thrown when instance is closed

thrown when method encounters an exception

thrown when method encounters an unknown exception

actual fun sendMessage(threadId: String, publicMeta: ByteArray, privateMeta: ByteArray, data: ByteArray): String

Sends a message in a Thread.

Return

ID of the new message

Parameters

threadId

ID of the Thread to send message to

publicMeta

public message metadata

privateMeta

private message metadata

data

content of the message

Throws

thrown when instance is closed

thrown when method encounters an exception

thrown when method encounters an unknown exception

actual external fun sendMessage(threadId: String, publicMeta: ByteArray, privateMeta: ByteArray, data: ByteArray): String

Sends a message in a Thread.

Return

ID of the new message

Parameters

threadId

ID of the Thread to send message to

publicMeta

public message metadata

privateMeta

private message metadata

data

content of the message

Throws

thrown when instance is closed

thrown when method encounters an exception

thrown when method encounters an unknown exception