summaryrefslogtreecommitdiffstats
path: root/nostr-grpc-relay-design.md
diff options
context:
space:
mode:
authorbndw <ben@bdw.to>2026-02-14 12:49:08 -0800
committerbndw <ben@bdw.to>2026-02-14 12:49:08 -0800
commit40df56985402a31695a9a3bb13319bd2a3276305 (patch)
treef95842afe4e75b93dfea49b94e5a6815c0d936ce /nostr-grpc-relay-design.md
parent9711b2b177959c0ea8e5119bead16dfd40b12c47 (diff)
feat: track WebSocket subscriptions in metrics
Add metrics tracking for WebSocket (NIP-01) subscriptions in addition to existing gRPC subscription tracking. Changes: - Add Count() method to subscription.Manager - Add MetricsRecorder interface to WebSocket handler - Update subscription metrics when REQ/CLOSE messages processed - Wire up metrics to WebSocket handler in main.go Before: Only gRPC stream subscriptions were counted After: Both gRPC and WebSocket subscriptions tracked accurately This fixes the dashboard showing 0 subscriptions when clients connect via WebSocket (e.g., nak req --stream).
Diffstat (limited to 'nostr-grpc-relay-design.md')
0 files changed, 0 insertions, 0 deletions