100ms Logo

100ms

Docs

Search docs
/

HMSMessage

CLASS

@objcMembers public class HMSMessage: NSObject

Properties

message

public let message: String

type

public let type: String

sender

public var sender: HMSPeer?

recipient

public var recipient: HMSMessageRecipient

time

public let time: Date

Methods

init(message:type:)

public init(message: String, type: String = "chat")

init(message:type:peerRecipient:)

public init(message: String, type: String = "chat", peerRecipient: HMSPeer)

init(message:type:rolesRecipient:)

public init(message: String, type: String = "chat", rolesRecipient: [HMSRole])