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
Copy file name to clipboardExpand all lines: Sources/AblyChat/DefaultTyping.swift
+16-10Lines changed: 16 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ internal final class DefaultTyping: Typing {
8
8
}
9
9
10
10
// (CHA-T6) Users may subscribe to typing events – updates to a set of clientIDs that are typing. This operation, like all subscription operations, has no side-effects in relation to room lifecycle.
@@ -91,21 +91,26 @@ internal final class DefaultTyping: Typing {
91
91
}
92
92
// (CHA-T13b3) (2/2) If the (CHA-T13b1) timeout expires, the client shall remove the clientId from the typing set and emit a synthetic typing stop event for the given client.
// (CHA-T13) When a typing event (typing.start or typing.stop) is received from the realtime client, the Chat client shall emit appropriate events to the user.
@@ -119,7 +124,8 @@ internal final class DefaultTyping: Typing {
119
124
120
125
// (CHA-T13) When a typing event (typing.start or typing.stop) is received from the realtime client, the Chat client shall emit appropriate events to the user.
@@ -171,7 +177,7 @@ internal final class DefaultTyping: Typing {
171
177
// (CHA-T4a3) The client shall publish an ephemeral message to the channel with the name field set to typing.started, the format of which is detailed here.
172
178
// (CHA-T4a5) The client must wait for the publish to succeed or fail before returning the result to the caller. If the publish fails, the client must throw an ErrorInfo.
173
179
tryawait channel.publish(
174
-
TypingEvents.started.rawValue,
180
+
TypingEventType.started.rawValue,
175
181
data:nil,
176
182
extras:["ephemeral":true]
177
183
)
@@ -191,7 +197,7 @@ internal final class DefaultTyping: Typing {
191
197
logger.log(message:"Stopping typing indicator for client: \(clientID)", level:.debug)
192
198
// (CHA-T5d) The client shall publish an ephemeral message to the channel with the name field set to typing.stopped, the format of which is detailed here.
0 commit comments