DataMessage
@objcMembers
public class DataMessage : NSObject
Data message received from server.
-
Monotonically increasing server ingest time
Declaration
Swift
public let timestampMs: Int64 -
Topic this message was sent on
Declaration
Swift
public let topic: String -
Data payload
Declaration
Swift
public let data: Data -
Sender attendee
Declaration
Swift
public let senderAttendeeId: String -
Sender attendee external user Id
Declaration
Swift
public let senderExternalUserId: String -
true if server throttled or rejected message, false if server has posted the message to its recipients or it’s not a sender receipt
Declaration
Swift
public let throttled: Bool -
Initiailize a DataMessage object
Declaration
Swift
public init(topic: String, data: Data, senderAttendeeId: String, senderExternalUserId: String, timestampMs: Int64, throttled: Bool)Parameters
topicThe topic of this data message belongs to
dataData payload
senderAttendeeIdAttendee Id
senderExternalUserIdAttendee external user ID
timestampMsMonotonically increasing server ingest time
throttledif server throttled or rejected message
-
Marshal data byte array to String
Declaration
Swift
public func text() -> String?Return Value
utf8 encoding string of data, null if data contains non utf8 characters
-
Try deserialize data byte array to swift basic collection type
Declaration
Swift
public func fromJSON() -> Any?Return Value
null if not deserializable, or swift basic collection type