aboutsummaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authorIgor Soarez <igor@soarez.org>2026-11-20 16:24:18 +0200
committerIgor Soarez <igor@soarez.org>2026-11-20 16:24:18 +0200
commit7658ed71898c7daca2661c7d15ffe03c8608c865 (patch)
treefb960917263451ba5e416f40d2e8964731ceddb0 /package.json
parent56e471e85ed636c688cb0eb691618ebbc5e61121 (diff)
broker: local mode, a permanent bridge for pi sessions on this machine
Upstream's bridge lives in whichever pi session binds 127.0.0.1:17318 first, so every reload or quit of that session hands the port to a race between all the others. With many sessions reloading at once, clients saw the Chrome extension as not polling for a minute or more. PI_CHROME_BROKER_LOCAL=1 runs the broker as that bridge, permanently: it accepts what upstream's bridge accepts (/command from local processes on loopback, no token, uploads not confined to a staging directory) and refuses a peer listener. pi sessions need no configuration; they find the port taken and forward to it. When a session holds the port, the broker retries every 25 ms and takes it as soon as that session lets go.
Diffstat (limited to 'package.json')
0 files changed, 0 insertions, 0 deletions