HMSMessage
CLASS
@objcMembers public class HMSMessage: NSObject, Codable
A local peer can send any message/data to all remote peers in the room
Properties
sender
public let sender: String
receiver
public let receiver: String?
peerID, optional, default is nil in which case broadcast will be sent to all
time
public let time: String
type
public let type: String
default is Chat Type
message
public let message: String?
string
Methods
init(sender:receiver:time:type:message:)
public init(sender: String, receiver: String? = nil, time: String, type: String, message: String)