@battle-racing/br-common-lib
Version:
Common library for all Battle Racing Repositorios
23 lines (22 loc) • 564 B
TypeScript
import type { Game, GameType } from '../../game';
export interface SocketWebAppClientToServerEventsParams {
'karts:authenticate': {
authToken: string;
};
'karts:list': undefined;
'karts:tracking:subscribe': {
kartGuid: string;
};
'karts:tracking:unsubscribe': {
kartGuid: string;
};
'game-changed:subscribe': {
gameId: Game['id'];
gameType: GameType;
};
'game-changed:unsubscribe': {
gameId: Game['id'];
gameType: GameType;
};
'game-tracks:list': undefined;
}