aboutsummaryrefslogtreecommitdiffstats
path: root/docker/postgres.Dockerfile
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-09-04 19:38:27 -0700
committerAdam Soltys <[email protected]>2026-09-04 19:38:27 -0700
commit3e36c6f50d5f5d182ae139431270841723c1fc33 (patch)
treea16c6cf03253e3f71befe092a6b08247f75b668f /docker/postgres.Dockerfile
parent08c9eca46469af21aeb209066401aad8808920d7 (diff)
downloadcoinos-server-3e36c6f50d5f5d182ae139431270841723c1fc33.tar.gz
coinos-server-3e36c6f50d5f5d182ae139431270841723c1fc33.zip
sockets: accept read-only tokens on login, deliver payment events only
POS terminals log into the websocket with the "<uid>-ro" token that the web flasher pre-fills. track() looked that id up as a user, failed, and closed the socket a second later, dropping the invoice subscription, so devices were listening about one second in six. Strip the suffix the way lib/auth.ts does for HTTP, flag the socket read-only, and forward only "payment" events to it. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_014gVYGi29FjTeLdNTiutkZx
Diffstat (limited to 'docker/postgres.Dockerfile')
0 files changed, 0 insertions, 0 deletions