diff options
| author | bndw <ben@bdw.to> | 2026-02-13 18:26:53 -0800 |
|---|---|---|
| committer | bndw <ben@bdw.to> | 2026-02-13 18:26:53 -0800 |
| commit | 83876eae868bd1e4fb6b9a823a6e8173919f290d (patch) | |
| tree | f754bcb8b10337db34f6f36ba3d094e53c1bb808 /examples/basic | |
| parent | 3481c3273f8764bd0a0ab51183dc57f592fb616c (diff) | |
feat: add Connect (gRPC over HTTP/JSON) support
Connect integration:
- Buf Connect codegen added to buf.gen.yaml
- Connect handler wraps gRPC server
- Serves on same port as WebSocket (:8080)
- HTTP/2 with h2c for cleartext HTTP/2
Now serving THREE protocols:
1. gRPC (native) on :50051 - binary, high performance
2. Connect on :8080/nostr.v1.NostrRelay/* - HTTP/JSON, browser compatible
3. WebSocket on :8080/ - Nostr standard protocol
All three protocols share:
- Same storage layer
- Same subscription manager
- Same validation logic
Browser-friendly! Call gRPC methods with fetch() or curl.
Diffstat (limited to 'examples/basic')
0 files changed, 0 insertions, 0 deletions
