Skip to content

connect() followed by immediate attach() results in initialized state instead of attaching #1118

@ttypic

Description

@ttypic

Way to reproduce:

realtimeClient = AblyRealtime(ClientOptions().apply {
   //...
   autoConnect = false
}) 
realtimeClient.connect()
realtimeClient.channels.get("channel").attach()

Expected:

realtimeClient.channels.get("channel"): initialized -> attaching -> attached states

Actual:

realtimeClient.channels.get("channel"): initialized -> attaching -> initialized states

┆Issue is synchronized with this Jira Task by Unito

Metadata

Metadata

Assignees

Labels

bugSomething isn't working. It's clear that this does need to be fixed.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions