You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// TODO: https://github.com/ably-labs/ably-chat-swift/issues/36 - Handle unsubscribing in line with CHA-M4b
21
21
// UUID acts as a unique identifier for each listener/subscription. MessageSubscriptionWrapper houses the subscription and the timeserial of when it was attached or resumed.
// TODO: (CHA-M7) Users may subscribe to discontinuity events to know when there’s been a break in messages that they need to resolve. Their listener will be called when a discontinuity event is triggered from the room lifecycle. - https://github.com/ably-labs/ably-chat-swift/issues/47
// (CHA-M7) Users may subscribe to discontinuity events to know when there’s been a break in messages that they need to resolve. Their listener will be called when a discontinuity event is triggered from the room lifecycle.
Copy file name to clipboardExpand all lines: Sources/AblyChat/RoomFeature.swift
+21Lines changed: 21 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,5 @@
1
+
import Ably
2
+
1
3
/// The features offered by a chat room.
2
4
internalenumRoomFeature{
3
5
case messages
@@ -21,3 +23,22 @@ internal enum RoomFeature {
21
23
}
22
24
}
23
25
}
26
+
27
+
/// Provides all of the channel-related functionality that a room feature (e.g. an implementation of ``Messages``) needs.
28
+
///
29
+
/// This mishmash exists to give a room feature access to both:
30
+
///
31
+
/// - a `RealtimeChannelProtocol` object (this is the interface that our features are currently written against, as opposed to, say, `RoomLifecycleContributorChannel`)
32
+
/// - the discontinuities emitted by the room lifecycle
0 commit comments