network event: remove unused array

All the network events only ever emit a single copy
There's no point in wrapping it into an array
This commit is contained in:
Reto Brunner 2024-04-07 14:22:53 +02:00
commit bf7eb0e727
4 changed files with 10 additions and 11 deletions

View file

@ -53,7 +53,7 @@ interface ServerToClientEvents {
names: EventHandler<{id: number; users: SharedUser[]}>;
network: EventHandler<{networks: SharedNetwork[]}>;
network: EventHandler<{network: SharedNetwork}>;
"network:options": EventHandler<{network: string; serverOptions: {[key: string]: any}}>;
"network:status": EventHandler<{network: string; connected: boolean; secure: boolean}>;
"network:info": EventHandler<{uuid: string}>;