From 83876eae868bd1e4fb6b9a823a6e8173919f290d Mon Sep 17 00:00:00 2001 From: bndw Date: Fri, 13 Feb 2026 18:26:53 -0800 Subject: 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. --- buf.gen.yaml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'buf.gen.yaml') diff --git a/buf.gen.yaml b/buf.gen.yaml index e6f485a..01fea00 100644 --- a/buf.gen.yaml +++ b/buf.gen.yaml @@ -13,3 +13,7 @@ plugins: out: api opt: - paths=source_relative + - remote: buf.build/connectrpc/go + out: api + opt: + - paths=source_relative -- cgit v1.2.3