log only 5 min after game end + some type hinting :P

This commit is contained in:
Zutatensuppe 2021-05-31 20:05:41 +02:00
parent c2da0759b9
commit 870f827e49
9 changed files with 108 additions and 56 deletions

View file

@ -21,6 +21,7 @@ import {
ReplayData,
Timestamp,
GameEvent,
ServerEvent,
} from '../common/Types'
declare global {
interface Window {
@ -485,7 +486,7 @@ export async function main(
}
if (MODE === MODE_PLAY) {
Communication.onServerChange((msg) => {
Communication.onServerChange((msg: ServerEvent) => {
const msgType = msg[0]
const evClientId = msg[1]
const evClientSeq = msg[2]