rl-ts-bridge
v0.1.8
Published
Rocket League Stats API Bridge Server
Maintainers
Readme
Rocket League Stats API TS
This repo provides a bridge server and client library for building web based applications that stream live Rocket League game data.
The events are fully typed within the client library. Find them here.
Quickstart
1. Configure Your RL Stats API Port
2. Start Bridge Server
The bridge server forwards rocket league game data to a web socket server.
Simply run npx rl-ts-bridge to start the bridge
- Optionally specify the port the bridge server runs on with
--port 3333 - Optionally specify the port the bridge is pointing to for Rocket League Stats API with
--rlport 49123 - Optionally specify the host the bridge is pointing to for Rocket League Stats API with
--rlhost 172.27.192.1
You should immediately see a stream of events if your game is running.
3. Integrate the Bridge Client
- Install the package
npm install rl-ts-client - Connect and listen for events.
import { RlStatsApiClient } from "rl-ts-client"; const client = new RlStatsApiClient() function disposableListener() { const unsubOpen = client.onOpen(() => setConnected(true)); const unsubClose = client.onClose(() => setConnected(false)); const unsubEvent = client.onEvent((event) => { // Handle the event console.log(event) }); client.open(); return () => { unsubOpen(); unsubClose(); unsubEvent(); } } const dispose = disposableListener();
React Example for Stream Overlay with Remote Control Page
Example repo with stream overlay and remote controls.


