Skip to content

objects: calling getRoot before attaching results in promise which never resolves or rejects #2045

@owenpearson

Description

@owenpearson

have found this behaviour in nodejs by running:

const realtime = new Realtime({ ...authOptions, plugins: { Objects }});
const channel = realtime.channels.get('test');
await channel.objects.getRoot();

I think the correct behaviour here is to reject the promise if the channel is not attached or attaching, and if attaching queue the operation?

┆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

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions