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 MessageEvent

    Declaration

    Swift

    public init(data: String, lastEventId: String = "")

    Parameters

    data

    The data field of the MessageEvent.

    eventType

    The lastEventId field of the MessageEvent.