-

@ mleku
2025-02-26 14:15:37
liek i said... server (remote) initiated... connection started by local, message sent by remote... this is a subscription
there would be no need for the confusing EOSE if you just cut the protocol in two and socket for subscription, starting now (after eose) and query, for up to now
queries use a different algorithm, they ask the database, where subscriptions are when the server receives messages and they are to be propagated to subscribers
this is one of the dumbest things about the nostr protocol, using sockets to do queries and then assuming that the client wants to subscribe when usually they don't, and often aren't even listening for them, but they hold the socket open anyway