Amend AIT-ST1/CT1 for client + channelName API#467
Open
zknill wants to merge 1 commit intoai-transport-featuresfrom
Open
Amend AIT-ST1/CT1 for client + channelName API#467zknill wants to merge 1 commit intoai-transport-featuresfrom
zknill wants to merge 1 commit intoai-transport-featuresfrom
Conversation
Update the `createAgentSession` (AIT-ST1) and `createClientSession` (AIT-CT1) factory specs to reflect the new option shape: an `Ably.Realtime` client and a `channelName` instead of a pre-resolved `Ably.RealtimeChannel`. The session resolves the channel internally via `client.channels.get(channelName)`. Add sub-points AIT-ST1a and AIT-CT1a covering agent registration: on construction, both sessions must register the `ai-transport-js` identifier with the SDK version on the Realtime client's `options.agents` map for usage tracking. Registration is idempotent across sessions sharing a client. Specify that `close()` does not release the channel or close the client — the caller owns the client lifecycle.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Update the
createAgentSession(AIT-ST1) andcreateClientSession(AIT-CT1) factory specs to reflect the new option shape: anAbly.Realtimeclient and achannelNameinstead of a pre-resolvedAbly.RealtimeChannel. The session resolves the channel internally viaclient.channels.get(channelName).Add sub-points AIT-ST1a and AIT-CT1a covering agent registration: on construction, both sessions must register the
ai-transport-jsidentifier with the SDK version on the Realtime client'soptions.agentsmap for usage tracking. Registration is idempotent across sessions sharing a client. Specify thatclose()does not release the channel or close the client — the caller owns the client lifecycle.