Ad-hoc single use subscription
Simulate a traditional request-response flow
- create the subscription
["REQ", "3f2f7c24-4279-40e8-95a8-7a7cc0571df9", <filtersJSON1>, <filtersJSON2>, ..., <filtersJSONN>]noteThe returned events should be processed immediately as they arrive, without waiting for the expected number of them to arrive and without waiting for the next 2 steps to be initiated and/or finished (this is not the case when aggregations over all of them are required before proceeding)
noteDuplicate events across multiple relays (based on event ID) should also be expected and ignored
- Wait for the response from the relay that indicates the end of stored events and the beginning of events newly received in real-time
["EOSE", "3f2f7c24-4279-40e8-95a8-7a7cc0571df9"] - Then close the subscription
["CLOSE", "3f2f7c24-4279-40e8-95a8-7a7cc0571df9"]