handleIncomingMessage

fun handleIncomingMessage(chatMessage: String?, time: Long, senderIp: InetAddress, incomingfile: URI?): Message

Processes an incoming message and routes it to the correct conversation.

Return

The created Message object representing the incoming message.

Parameters

chatMessage

The message content received.

time

The timestamp when the message was received.

senderIp

The IP address of the sender.

incomingfile

Optional file URI attached to the message.