2024-07-24 20:54:11 +00:00
|
|
|
package kinds
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
2024-07-31 18:12:33 +00:00
|
|
|
"grain/server/handlers/response"
|
|
|
|
relay "grain/server/types"
|
2024-07-24 20:54:11 +00:00
|
|
|
|
|
|
|
"golang.org/x/net/websocket"
|
|
|
|
)
|
2024-07-25 03:04:26 +00:00
|
|
|
|
2024-07-27 14:06:34 +00:00
|
|
|
func HandleKind2(ctx context.Context, evt relay.Event, ws *websocket.Conn) error {
|
|
|
|
|
|
|
|
// Send an OK message to indicate the event was not accepted
|
|
|
|
response.SendOK(ws, evt.ID, false, "invalid: kind 2 is deprecated, use kind 10002 (NIP65)")
|
|
|
|
|
2024-07-24 20:54:11 +00:00
|
|
|
return nil
|
2024-07-25 03:04:26 +00:00
|
|
|
}
|