diff --git a/nostr/message_type.py b/nostr/message_type.py index c35e099..111553a 100644 --- a/nostr/message_type.py +++ b/nostr/message_type.py @@ -6,4 +6,5 @@ class ClientMessageType: class RelayMessageType: EVENT = "EVENT" NOTICE = "NOTICE" + END_OF_STORED_EVENTS = "EOSE" \ No newline at end of file diff --git a/nostr/relay.py b/nostr/relay.py index b563808..ac6c9f6 100644 --- a/nostr/relay.py +++ b/nostr/relay.py @@ -69,6 +69,8 @@ class Relay: message_type = message_json[0] if message_type == RelayMessageType.NOTICE: return True + if message_type == RelayMessageType.END_OF_STORED_EVENTS: + return True if message_type == RelayMessageType.EVENT: if not len(message_json) == 3: return False