GithubHelp home page GithubHelp logo

taraman17 / nodejs-cs2-api Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 2.0 2.46 MB

Serverside API to start/stop/update a CS2 server and control via RCON.

License: GNU General Public License v3.0

JavaScript 91.21% CSS 3.73% HTML 5.07%

nodejs-cs2-api's People

Contributors

taraman17 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

nodejs-cs2-api's Issues

Add HTTP Authentication

To make the API really RESTful, the authentication should work stateless.
With the current steam solution, a user interaction is required, so I will add digest authentication, to allow for automated calls sending the credentials.

Add proper logging

Now that we have a user authentication, I will add logging to a logfile, so that one can see who did what on the server.

Add an option to update the Maplist from the server.

If the Hosted map collection changes while the server is running, maps can be added or removed from the server.
Since maps are automatically only loaded on startup to minimise the rcon traffic, I will add a function to update the list manually

Add authentication

For security reasons, the requests should only be available to authenticated clients.

Current Idea is to use steam authentication API, since the usual user will have a steam account.

Mapchange completed is not sensed

For some reason, the code to react on the mapChangeEmitter got deleted:

    // follow mapchange
    } else if (args.action == "mapstart") {
        mapChangeEmitter.once('completed', () => {
            res.writeHeader(200, {"Content-Type": "application/json"});
            res.write(`{ "completed": true }`);
            res.end();
        });
    }

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.