IMessageSender

interface IMessageSender

Message sending functions of the IRemoteSupportClient interface

Functions

Link copied to clipboard
abstract suspend fun sendCommand(cmd: Command): ICommandReceipt

Sends the provided Command to the remote peer

Link copied to clipboard
abstract suspend fun sendNotification(notif: Notification): Int

Sends the provided Notification to the remote peer

Link copied to clipboard
abstract suspend fun sendQuery(query: Query): IQueryReceipt

Sends the provided Query to the remote peer

Inheritors

Link copied to clipboard

Extensions

Link copied to clipboard
suspend fun IMessageSender.sendBytes(    message: ByteBuffer,     tag: IUserMessageTag = DefaultCategory.Bytes.defaultTag,     category: IUserMessageCategory = DefaultCategory.Bytes)

Send a ByteBuffer with the DefaultCategory.Bytes category and tag

Link copied to clipboard
suspend fun IMessageSender.sendChat(    message: String,     tag: IUserMessageTag = DefaultCategory.Chat.defaultTag,     category: IUserMessageCategory = DefaultCategory.Chat)

Send a text notification with the DefaultCategory.Chat category and tag

Link copied to clipboard
suspend fun IMessageSender.sendLogEntry(    message: String,     tag: IUserMessageTag = DefaultCategory.Log.defaultTag,     category: IUserMessageCategory = DefaultCategory.Log)

Send a text notification with the DefaultCategory.Log category and tag

Link copied to clipboard
suspend fun IMessageSender.sendObject(    message: ByteBuffer,     tag: IUserMessageTag = DefaultCategory.Object.defaultTag,     category: IUserMessageCategory = DefaultCategory.Object)

Send a serialized object with the DefaultCategory.Object category and tag