Contents

GroupSessionMessenger.Messages

An asynchronous sequence of messages sent to the session.

Declaration

struct Messages<Message> where Message : Decodable, Message : Encodable

Overview

When you use a GroupSessionMessenger to communicate across devices, the Messages structure provides the sequence of messages the other devices send. Iterate over the contents of this structure asynchronously to retrieve each message and update your app.

Don’t create this structure directly. Instead, use the messages(of:) or messages(of:) method to retrieve the messages for a given session.

Topics

Creating an iterator

See Also

Receiving data from other participants