Optional ReadonlyconnectionIf there's a connection error it will be available here.
ReadonlyconnectionProvides the connection status of the Ably connection.
ReadonlycurrentlyA state value representing the set of client IDs that are currently typing in the room. It automatically updates based on typing events received from the room.
ReadonlykeystrokeA shortcut to the Typing.keystroke method.
Sends a typing started event to notify other users that the current user is typing.
Events are throttled according to the heartbeatThrottleMs room option to prevent
excessive network traffic. If called within the throttle interval, the operation
becomes a no-op. Multiple rapid calls are serialized to maintain consistency.
Note:
connected state.keystroke() and stop() are serialized and resolve in order.This is a stable reference and will not be changed between renders for the same room.
Promise that resolves when the typing event has been sent, or rejects with:
Optional ReadonlyroomIf there's an error with the room it will be available here.
ReadonlyroomProvides the status of the room.
ReadonlystopA shortcut to the Typing.stop method.
Sends a typing stopped event to notify other users that the current user has stopped typing.
If the user is not currently typing, this operation is a no-op. Multiple rapid calls are serialized to maintain consistency, with the most recent operation determining the final state.
Note:
connected state.keystroke() and stop() are serialized and resolve in order.This is a stable reference and will not be changed between renders for the same room.
Promise that resolves when the stop event has been sent, or rejects with:
Common status variables for chat features. Most hooks in this library implement this interface.