diff options
| author | bndw <ben@bdw.to> | 2026-02-15 10:06:26 -0800 |
|---|---|---|
| committer | bndw <ben@bdw.to> | 2026-02-15 10:06:26 -0800 |
| commit | ae95a3fd20b5dc8c25ee947f5cc8e120a185b8bc (patch) | |
| tree | d8df895e4480a3416b0e6a2a46f723afc8bd00e9 /buf.yaml | |
| parent | d744c32f1bc7411e04c97a9d14c172baaa0e4a89 (diff) | |
fix: improve WebSocket error responses and protocol compliance
- Send OK false for rate limit errors instead of NOTICE
- Send OK false for auth errors (e.g. pubkey not in allowlist)
- Remove OK response for AUTH events (AUTH is not an EVENT type)
- Parse event before auth checks to get event ID for error responses
These changes improve client UX by providing immediate, structured
feedback for all rejection cases instead of generic NOTICE messages.
The AUTH event OK removal fixes a bug where clients would read the
wrong response when sending EVENT after AUTH.
Diffstat (limited to 'buf.yaml')
0 files changed, 0 insertions, 0 deletions
