sendMessage

suspend fun sendMessage(fromUserName: String, toUserName: String, message: String = "", latitude: String? = null, longitude: String? = null)

Sends a message to the specified P2P member(s).

Parameters

fromUserName

The username of the sender.

toUserName

The username of the recipient.

message

The text message to send.

latitude

The latitude of the location (optional).

longitude

The longitude of the location (optional).