diff --git a/nip46/dynamic-signer.go b/nip46/dynamic-signer.go index bad8492..a5ca4d4 100644 --- a/nip46/dynamic-signer.go +++ b/nip46/dynamic-signer.go @@ -257,6 +257,8 @@ func (p *DynamicSigner) HandleRequest(event *nostr.Event) ( break } result = plaintext + case "ping": + result = "pong" default: return req, resp, eventResponse, fmt.Errorf("unknown method '%s'", req.Method) diff --git a/nip46/static-key-signer.go b/nip46/static-key-signer.go index 73e9193..5a9d4a0 100644 --- a/nip46/static-key-signer.go +++ b/nip46/static-key-signer.go @@ -232,6 +232,8 @@ func (p *StaticKeySigner) HandleRequest(event *nostr.Event) ( break } result = plaintext + case "ping": + result = "pong" default: return req, resp, eventResponse, fmt.Errorf("unknown method '%s'", req.Method)