fix(rpc): separate public calls + better pending handlers

This commit is contained in:
2026-09-28 02:05:40 +01:00
parent 6247b7d781
commit c085fd2c8f
5 changed files with 22 additions and 8 deletions
+2 -1
View File
@@ -51,6 +51,7 @@ export class RPCInstanceBase {
to: RPCEnvironment,
args: unknown[],
player: number | null,
type: 'event' | 'broadcast' = 'event',
): RPCState {
return {
event,
@@ -60,7 +61,7 @@ export class RPCInstanceBase {
error: null,
data: args,
player,
type: 'event',
type,
}
}