Skip to content

Add a way to subscribe to realtime channel and presence messages without triggering an attach #202

Description

@lawrence-forooghian

Background

This arose in the context of ably/ably-chat-swift#18.

The JS Chat SDK has decided that in its API, subscribing to a room’s messages or presence messages should not trigger a channel attach operation (see decision record). In order to do this, it uses ably-js private API in order to, essentially, call RealtimeChannel#subscribe and RealtimePresence#subscribe in a way that does not trigger the RTL7c or RTP6c implicit attach.

For the Swift and Kotlin Chat SDKs, I would like us to instead be able to use an API that’s properly specified in this spec, even if marked as "experimental and for Ably-authored SDKs" only.

Suggested approach

Add some sort of subscribeWithoutImplicitAttach method to RealtimeChannel and RealtimePresence. Think of a way of not confusing users with this method.

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions