Skip to content

Commit 9c7597d

Browse files
committed
Update comments and arguments for occupancy
1 parent e5e19bf commit 9c7597d

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

Sources/AblyChat/DefaultOccupancy.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ internal final class DefaultOccupancy: Occupancy {
7272
}
7373
}
7474

75-
// (CHA-O3) Users can request an instantaneous occupancy check via the REST API. The request is detailed here (https://sdk.ably.com/builds/ably/specification/main/chat-features/#rest-occupancy-request), with the response format being a simple occupancy event
75+
// (CHA-O3) Users can request an instantaneous occupancy check via the REST API. The request is detailed here (https://sdk.ably.com/builds/ably/specification/main/chat-features/#rest-occupancy-request), with the response format being a simple occupancy data
7676
internal func get() async throws(ARTErrorInfo) -> OccupancyData {
7777
do {
7878
logger.log(message: "Getting occupancy for room: \(roomName)", level: .debug)

Sources/AblyChat/Occupancy.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ public extension Occupancy {
6363
}
6464
}
6565

66-
// (CHA-O2) The occupancy event format is shown here (https://sdk.ably.com/builds/ably/specification/main/chat-features/#chat-structs-occupancy-event)
67-
6866
/**
6967
* Represents the occupancy of a chat room.
7068
*/
@@ -89,6 +87,7 @@ public enum OccupancyEventType: String, Sendable {
8987
case updated
9088
}
9189

90+
// (CHA-O2) The occupancy event format is shown here (https://sdk.ably.com/builds/ably/specification/main/chat-features/#chat-structs-occupancy-event)
9291
public struct OccupancyEvent: Sendable {
9392
public let type: OccupancyEventType
9493
public let occupancy: OccupancyData

0 commit comments

Comments
 (0)