Structures

The following structures are available globally.

Message Data

  • Default tags for RSTaggedData.tag

    Note

    These are defaulted to MIME types, though they can be set to any other string
    See more

    Declaration

    Swift

    public struct DefaultTag
  • Default RSNotification.category values (can be set)

    See more

    Declaration

    Swift

    public struct DefaultCategory
  • Data along with a Tag that describes the format of the data

    See more

    Declaration

    Swift

    public struct RSTaggedData

Notification

  • Notification message to be sent over the data transport. Notifications are not associated with a response and can be considered fire and forget.

    See more

    Declaration

    Swift

    public struct RSNotification : RSMessage

Command

  • A command to be sent over the data transport. The command will be acknowledged either upon receipt or completion of the associated action by the remote peer based on the acknowledgeOn property

    See more

    Declaration

    Swift

    public struct RSCommand : RSMessage
  • Completes a command sent by the remote peer

    See more

    Declaration

    Swift

    public struct RSCommandContext

Query

  • A query to be sent over the data transport. The query will be answered by the remote peer

    See more

    Declaration

    Swift

    public struct RSQuery : RSMessage
  • Answers a query sent by the remote peer. Multiple messages may be sent in response to a query by sending the initial responses with the isLastMessage set to false, and sending the terminal response with the isLastMessage parameter set to true

    See more

    Declaration

    Swift

    public struct RSQueryContext
  • Handles the response(s) of a query. Includes a callback for response messages and a promise resolved on completion

    See more

    Declaration

    Swift

    public struct RSQueryReceipt

Responses