@rocketleagueapi/tradebot-api-types
v2.3.0
Published
Typings for the Rocket League Tradebot API.
Downloads
4
Readme
🏠 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.