Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to get channel lifecycle status #391

Open
deanna-lad opened this issue May 11, 2022 · 1 comment
Open

Add support to get channel lifecycle status #391

deanna-lad opened this issue May 11, 2022 · 1 comment
Labels
blocked-by-ably We can't proceed until something under our direct control, in a different codebase, happens. enhancement New feature or improved functionality.

Comments

@deanna-lad
Copy link

deanna-lad commented May 11, 2022

Add support to get channel lifecycle status

Channel lifecycle status is described at [Channel status / REST / [Docs]|https://ably.com/docs/rest/channel-status#metadata-rest]

It is currently possible to retrieve channel lifecycle status in ably-go by using REST.Request and marshalling the result into a slice of empty interface.

Example:

result, _ := restClient.Request("get", "/channels/test").Pages(context.Background())

result.Next(ctx)

var items []interface{}
if err := result.Items(&items); err != nil {
	fmt.Println(err)
}

fmt.Printf("%+v\n", items)
// [map[channelId:test name:test status:map[isActive:true occupancy:map[metrics:map[connections:1 presenceConnections:1 presenceMembers:1 presenceSubscribers:1 publishers:1 subscribers:1]]]]]

Out of Scope
Realtime subscription to Channel Lifecycle Events. This ticket is only for supporting REST client ‘Get’.

┆Issue is synchronized with this Jira Story by Unito

@ably-sync-bot ably-sync-bot added the enhancement New feature or improved functionality. label May 12, 2022
@ikurek
Copy link
Contributor

ikurek commented May 16, 2022

Blocked by ably/ably-cocoa#1415 and ably/ably-java#769

@sync-by-unito sync-by-unito bot changed the title Add support to get channel lifecycle status Add support to get channel lifecycle status Oct 5, 2022
@QuintinWillison QuintinWillison added blocked-by-ably We can't proceed until something under our direct control, in a different codebase, happens. and removed blocked-by-ably-cocoa labels Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked-by-ably We can't proceed until something under our direct control, in a different codebase, happens. enhancement New feature or improved functionality.
Development

No branches or pull requests

4 participants