Typed isomorphic wrapper for the Rocket League SOS Overlay System project suite
We're interested in the SOS Overlay System plugin for Bakke's Mod, a mod for esports title Rocket League. We wrote this package to make developing against the WebSocket interface's rebroadcasting relay easier.
npm install @zipsesports/sos-wrapper
See test.ts
.
import Emittery from "emittery";
/**
* Stolen straight from the README: https://gitlab.com/bakkesplugins/sos/sos-plugin/-/blob/4d815d9ebc582cfeeedd22db8cdfcf2c56e8c216/README.md
*/
declare type EventDataMap = {
"wsRelay:info": string;
"game:update_state": {
/* ... */
};
/* ... */
};
/**
* Connect to the WebSocket server at the specified port and wrap it in a typed `Emittery`
* @param port Port to connect to the relay server at, defaults to `49322`
*/
export default function wrap(
port?: number
): Promise<Emittery.Typed<EventDataMap>>;
MIT License, see LICENSE
.