Requesting events

In this chapter we'll cover the four ways to request events to relays:

  • fetching: request the events and wait until all relays return the result.
  • streaming: request and immediately receive the events; terminate the stream when all relays satisfy the exit condition.
  • syncing: execute a negentropy reconciliation, which will request only the missing events.
  • subscribing: create a long-lived subscription to receive events in real-time.