Repository navigation
Add the endpoints a MatrixRTC client needs - #22
Merged
Merged
Conversation
mx_openid_token() requests the OpenID token a LiveKit JWT service checks with the homeserver; mx_rtc_transports() reads the MSC4143 transport list; mx_room_state() returns a room's full current state so per-device call memberships can be found; mx_well_known_client() reads a server's client discovery document.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Five endpoint functions a MatrixRTC client needs, used by mx.client's new call layer:
mx_openid_token():POST /user/{id}/openid/request_token, response passed through whole (a relying party expects the object as is).mx_rtc_transports():GET /_matrix/client/unstable/org.matrix.msc4143/rtc/transports; empty list when the server lacks the endpoint.mx_rtc_livekit_token():POST <service>/sfu/getat a LiveKit JWT service with{room, openid_token, device_id}, returns{url, jwt}. Verified against lk-jwt-service 0.7.0.mx_room_state(): a room's full current state, for per-device state such as call memberships.mx_well_known_client():https://<server>/.well-known/matrix/client, NULL when absent.Tests mock
mx_httpthe way the existing suites do (34 new expectations, 242 total).R CMD check: 0/0/0. Version 0.3.1.1.🤖 Generated with Claude Code