Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 737 Bytes

README.md

File metadata and controls

25 lines (17 loc) · 737 Bytes

rtgg.js

A JavaScript API wrapper and WebSocket handler for racetime.gg

Install

npm i rtgg.js

Note: this package uses the native fetch API, and thus requires at least Node.js v17.5.

Initialization

const { rtggClient, rtggWebSocket } = require('rtgg.js');

const rtgg = new rtggClient();

Usage

The wrapper is based on promises, so it advised you use async/await in all API calls.

Documentation is available here.

Discussion

You can discuss this repository more in my Discord.