MessageEvent
public struct MessageEvent : Equatable, Hashable
Struct representing received event from the stream.
-
The event data of the event.
Declaration
Swift
public let data: String -
The last seen event id, or the event id set in the Config if none have been received.
Declaration
Swift
public let lastEventId: String -
Constructor for a
MessageEventDeclaration
Swift
public init(data: String, lastEventId: String = "")Parameters
dataThe
datafield of theMessageEvent.eventTypeThe
lastEventIdfield of theMessageEvent.
View on GitHub
MessageEvent Structure Reference