Message

public class Message

Data that is received from the Server.

  • ref

    Reference number. Empty if missing

    Declaration

    Swift

    public let ref: String
  • Message topic

    Declaration

    Swift

    public let topic: String
  • Message event

    Declaration

    Swift

    public let event: String
  • Message payload

    Declaration

    Swift

    public var payload: Payload
  • Convenience accessor. Equivalent to getting the status as such:

    message.payload["status"]
    

    Declaration

    Swift

    public var status: String? { get }