mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-09-17 19:13:56 +02:00
ping method considered harmless
This commit is contained in:
@@ -234,6 +234,7 @@ func (p *StaticKeySigner) HandleRequest(event *nostr.Event) (
|
||||
result = plaintext
|
||||
case "ping":
|
||||
result = "pong"
|
||||
harmless = true
|
||||
default:
|
||||
return req, resp, eventResponse,
|
||||
fmt.Errorf("unknown method '%s'", req.Method)
|
||||
|
Reference in New Issue
Block a user