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

Realtime-API - expose methods to retrieve room sessions #580

Merged
merged 12 commits into from
Jun 24, 2022

Conversation

edolix
Copy link
Contributor

@edolix edolix commented Jun 23, 2022

Add new methods in realtime-api to get list of room_sessions and and retrieve by id.

TODO

  • Docs

@changeset-bot
Copy link

changeset-bot bot commented Jun 23, 2022

🦋 Changeset detected

Latest commit: fd8d982

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 7 packages
Name Type
@signalwire/core Patch
@sw-internal/playground-realtime-api Minor
@signalwire/realtime-api Minor
@signalwire/js Patch
@signalwire/react-native Patch
@signalwire/web-api Patch
@signalwire/webrtc Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@edolix edolix changed the title WIP: Realtime-API - expose methods to retrieve room sessions Realtime-API - expose methods to retrieve room sessions Jun 24, 2022
packages/realtime-api/src/video/Video.test.ts Outdated Show resolved Hide resolved
@@ -81,6 +89,58 @@ class VideoAPI extends BaseConsumer<RealTimeVideoApiEvents> {
],
])
}

async getRoomSessionsInProgress() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure I understand the need of the suffix InProgress here?

packages/realtime-api/src/video/Video.ts Outdated Show resolved Hide resolved
@edolix edolix requested review from danieleds and framini June 24, 2022 08:39
framini
framini previously approved these changes Jun 24, 2022
Comment on lines +38 to +40

getRoomSessions(): Promise<{ roomSessions: RoomSession[] }>
getRoomSessionById(id: string): Promise<{ roomSession: RoomSession }>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@edolix are these the only changes in the public interface?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@danieleds yes!

@edolix edolix merged commit e8a54a6 into main Jun 24, 2022
@edolix edolix deleted the eg/rt-get-rooms-methods branch June 24, 2022 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants