Add WebSocket messages for beatmap data and user activity#38071
Open
tsunyoku wants to merge 1 commit into
Open
Add WebSocket messages for beatmap data and user activity#38071tsunyoku wants to merge 1 commit into
tsunyoku wants to merge 1 commit into
Conversation
tsunyoku
commented
Jun 13, 2026
| public required double StarRating { get; init; } | ||
|
|
||
| [JsonProperty("status")] | ||
| public required BeatmapOnlineStatus Status { get; init; } |
Member
Author
There was a problem hiding this comment.
We might want this enum (and any future cases) to serialize as a string rather than an int, depending on what future documentation for the WebSocket may look like once it reaches a mature state.
Indifferent, would appreciate another opinion.
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.
Warning
To any onlookers, this API is still rapidly changing. Please expect further breaking changes and do not use this PR to flood requests for what data should be available.
RFC.
Example beatmap message
{ "beatmap_id": 1614228, "beatmap_set_id": 760694, "beatmap_hash": "1cf9f752f9c92dc5b8a2138d0c2e1653", "metadata": { "artist": "Loki", "artist_unicode": "Loki", "title": "A New King Is Born", "title_unicode": "A New King Is Born", "author": "DTM9 Nowa", "source": "osu!", "tags": "Mapping with rewards MWR The Fall of a Hero symphonic metal", "user_tags": [] }, "difficulty": { "approach_rate": 8.5, "circle_size": 3.5, "overall_difficulty": 6.0, "drain_rate": 5.0 }, "difficulty_name": "Hyper", "ruleset_id": 0, "bpm": 190.0, "star_rating": 4.05, "status": 1, "type": "BeatmapMessage" }Example user activity message
{"status":"ChoosingBeatmap","type":"UserActivityMessage"}