diff options
| author | bndw <ben@bdw.to> | 2026-02-13 17:58:29 -0800 |
|---|---|---|
| committer | bndw <ben@bdw.to> | 2026-02-13 17:58:29 -0800 |
| commit | 28d6d0ea2f86d69ad003557656466a50545fc0c9 (patch) | |
| tree | 7fba1ecd6d1733cd5fbdec12d9e45318613a0249 /internal/handler/websocket/nip11.go | |
| parent | fcba12d7ae3cdb361c6321519fdaf5a537a6a871 (diff) | |
feat: implement Subscribe with real-time event streaming
Subscription manager:
- Track active subscriptions across connections
- Filter matching with full NIP-01 support
- Event fan-out to matching subscribers
Subscribe RPC:
- Query stored events (past)
- Stream them to client
- Keep stream open for new events (real-time)
- Auto-generate subscription ID if not provided
PublishEvent now:
- Stores event
- Notifies all matching active subscriptions
- Streams to gRPC clients in real-time
4 new tests, all 41 tests passing
Diffstat (limited to 'internal/handler/websocket/nip11.go')
0 files changed, 0 insertions, 0 deletions
