implement ping method in nip46 signers
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user