init(session:deliveryMode:)
Creates a new group session messenger with the specified delivery mode, Deliverymode Swift.enum, and associates it with the specified session object.
Declaration
init<Activity>(session: GroupSession<Activity>, deliveryMode: GroupSessionMessenger.DeliveryMode) where Activity : GroupActivityParameters
- session:
The group session to use for communication with participants. Specify a session object that is in either the Waiting or Joined state for this parameter. However, a session must be in the joined state to send or receive messages.
- deliveryMode:
The delivery mode for sending and receiving messages. Specify a delivery mode option for the underlying transport of either Reliable or Unreliable