Class Nip01UserMetadataListener

java.lang.Object
org.ngengine.nostr4j.nip01.Nip01UserMetadataListener
All Implemented Interfaces:
NostrSubEventListener, NostrSubListener

public class Nip01UserMetadataListener extends Object implements NostrSubEventListener
  • Constructor Details

  • Method Details

    • onSubEvent

      public void onSubEvent(SignedNostrEvent event, boolean stored)
      Description copied from interface: NostrSubEventListener
      Called when an event matching the subscription's filter is received.

      This method is invoked for each event that matches the subscription's filter criteria and passes any duplicate detection checks implemented by the subscription's event tracker.

      Specified by:
      onSubEvent in interface NostrSubEventListener
      Parameters:
      event - The signed Nostr event that was received
      stored - Whether this event came from the relay's stored history (true) or is a new event (false)