Add some event kind constants

This commit is contained in:
Jon Staab
2025-09-24 15:27:32 -07:00
parent 4b7e324c63
commit 9b927842a2
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -176,5 +176,5 @@ func (instance *Instance) RejectConnection(r *http.Request) bool {
}
func (instance *Instance) PreventBroadcast(ws *khatru.WebSocket, event nostr.Event) bool {
return event.Kind == 28934
return event.Kind == AUTH_JOIN
}
+5
View File
@@ -6,6 +6,11 @@ import (
"sync"
)
const (
AUTH_JOIN = 28934
AUTH_INVITE = 28935
)
var (
env map[string]string
envOnce sync.Once