Code Monkey home page Code Monkey logo

osu-client-api-concept's People

Contributors

ekgame avatar omkelderman avatar redbackthomson avatar ren- avatar

Stargazers

 avatar

Watchers

 avatar  avatar

osu-client-api-concept's Issues

option to listen only on localhost

I was thinking that its probably a good idea to have the tcp-socket listen on the localhost interface so other devices in the network cannot connect to it. But I can also think of reasons why some (me Kappa) might want other devices (like my server thats on the same network as my pc) to connect to it

Authentication Scope

Current Concept

osu! should store md5("HHWnH0XpdWzej7Ir") = "0652e041caf727f4f1a6127fe012c3f0" for later authentication.

My Proposal

In practice, we should probably hash it differently depending on the needs of the API

Add an argument to the Client->Server authentication request: "scope": "user"/"client" which determines whether the program wishes to have access to the client for all users or just the current one. Then salt the application token with the username (if it's just for the current user) or with nothing for all users.

Why?

Protecting users that use shared computers. For example, I've seen users log into osu! at internet cafes. If someone has granted full permissions to that computer for their malware program, it has access to anyone that will log into that computer.

Should every request have a response?

Atm the notification-request does not have a response.

IMO every request should result in a response so you know your request has been accepted.
Theoretically if you dont have a response you still could be waiting for that error-response

realtime game-stats

I just suddenly had a random idea: get realtime stats while playing (or speccing), like current score, combo, time in song, idk, maybe even amount of 300/100/50/misses so far, idk.

Problem i imediately see is it'll be probably quite spammy since its a constant stream of updates, maybe even like hundreds of messages per second idk... So im feeling its probably not a good idea to have this with the current json-messages thing.. idk

Use case i was thinking of: playing with score-interface stuff disabled, but still having the score-related stuff showing on stream in stream-overlay.

Default Port Number

Picking port numbers can be arbitrary. As long as it's not in the Windows reserved range (0-1024), then we could really choose whatever we pleased. So I have come up with a list of suggestions.

Take the ASCII values for a bunch of words and prepend a 1 to it:

  • peppy: 1558
  • osu!: 1343
  • circles: 1741

According to this list, none of them are currently being used by any games. And according to this list, none of them are currently "reserved" by any programs.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.