@rocketleagueapi/tradebot-api-types
TypeScript icon, indicating that this package has built-in type declarations

2.3.0 • Public • Published

Rocket League Tradebot API Types

GitHub tag (latest by date) License: LGPL--3.0--or--later

An up to date type library for the Tradebot API, to be used with Socket.IO.

🏠 Homepage

Install

Install this package using your package manager of choice.

 npm i @rocketleagueapi/tradebot-api-types

or

 yarn add @rocketleagueapi/tradebot-api-types

Example Usage

import { ListenEvents, EmitEvents } from '@rocketleagueapi/tradebot-api-types'
import io, { Socket } from 'socket.io-client';

const socket: Socket<ListenEvents, EmitEvents> = io('https://tradebot.anga.blue', {
    auth: {
        key: process.env.TRADEBOT_API_KEY
    }
});

socket.on('connect', () => {
    console.log('Connected to Tradebot API');

    socket.emit('getItems', console.log);
});

📝 License

Copyright © 2021 Rocket League API.
This project is LGPL--3.0--or--later licensed.

Readme

Keywords

none

Package Sidebar

Install

npm i @rocketleagueapi/tradebot-api-types

Weekly Downloads

14

Version

2.3.0

License

LGPL-3.0-or-later

Unpacked Size

31.1 kB

Total Files

71

Last publish

Collaborators

  • angablue