2.1.1 • Published 2 years ago
rtgg.js v2.1.1
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.