sound-space-plus icon indicating copy to clipboard operation
sound-space-plus copied to clipboard

do-not-merge: online functionality

Open cunev opened this issue 1 year ago • 6 comments

The added Socket.gd script initializes a WebSocket client (WebSocketClient) and communicates with another local websocket server process by sending JSON-formatted messages. It handles connection events, receives data, and sends specific game-related states, such as map start, menu state, and map end.

Example in a Node.Js server

Testing:

  • manually tested

image

Why

  • Allows integration with Online client and other helpers that might want live game data.
  • osu! has similar interface, and it has been proven useful for tournaments.

cunev avatar Nov 17 '24 20:11 cunev

Do not merge yet!

cunev avatar Nov 17 '24 20:11 cunev

Didnt tick the "Requesting changes" thing but thanks git I guess...

mycpphurts avatar Nov 18 '24 13:11 mycpphurts

this might seem like a dumb idea but i think it'd be cool if you added the current language selected as a websocket function just in case external programs utilize that, and also has said translation for said program

fogsaturate avatar Nov 28 '24 20:11 fogsaturate

Chat do we merge this :trolley

mycpphurts avatar Jan 19 '25 02:01 mycpphurts

Do not merge, this is still heavily tested and being improved. When finished I will give greenlight to merge. Thanks!

cunev avatar Jan 20 '25 16:01 cunev

have you considered making this a draft pr

kermeow avatar Apr 04 '25 21:04 kermeow