handle Incoming Message
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
chat Message
The message content received.
time
The timestamp when the message was received.
sender Ip
The IP address of the sender.
incomingfile
Optional file URI attached to the message.