feat: implement simulation clock with configurable time multiplier
Broker-driven clock that broadcasts periodic heartbeat ticks to all peers in a mesh. Speed is configurable from x1 (real-time, 60s ticks) to x100 (600ms ticks) for load testing simulations. Auto-pauses when the last peer disconnects. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1766,6 +1766,8 @@ export class BrokerClient {
|
|||||||
[this.skillListResolvers, []],
|
[this.skillListResolvers, []],
|
||||||
[this.peerFileResponseResolvers, { error: "broker error" }],
|
[this.peerFileResponseResolvers, { error: "broker error" }],
|
||||||
[this.peerDirResponseResolvers, { error: "broker error" }],
|
[this.peerDirResponseResolvers, { error: "broker error" }],
|
||||||
|
[this.webhookAckResolvers, null],
|
||||||
|
[this.webhookListResolvers, []],
|
||||||
];
|
];
|
||||||
for (const [map, defaultVal] of allMaps) {
|
for (const [map, defaultVal] of allMaps) {
|
||||||
const first = (map as Map<string, any>).entries().next().value as [string, { resolve: (v: unknown) => void; timer: NodeJS.Timeout }] | undefined;
|
const first = (map as Map<string, any>).entries().next().value as [string, { resolve: (v: unknown) => void; timer: NodeJS.Timeout }] | undefined;
|
||||||
|
|||||||
Reference in New Issue
Block a user