diff options
| author | Adam Soltys <[email protected]> | 2026-09-04 19:38:27 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-09-04 19:38:27 -0700 |
| commit | 3e36c6f50d5f5d182ae139431270841723c1fc33 (patch) | |
| tree | a16c6cf03253e3f71befe092a6b08247f75b668f /scripts/cln_schema.sql | |
| parent | 08c9eca46469af21aeb209066401aad8808920d7 (diff) | |
| download | coinos-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 'scripts/cln_schema.sql')
0 files changed, 0 insertions, 0 deletions
