i had added a similar feature that would retain a filter and resume it after auth was confirmed.
most clients retry requests and event publishes after getting an auth demand.
so i have left out that part but the code is still there to enable it.
it's just that if the client doesn't expect this, your relay ends up doubling up subscriptions.
i understand why semisol did this, and i tried it as well, but it's not in the spec. it's a reasonable expectation based on protocol theory but it's not in the spec.
did i mention, that it's not in the spec?
so, idk, semisol can keep doing this and i can enable it in my relay implementation with a few uncomments or something equally easy. but i don't think it is a good idea. the expectation of repeating a request or submission of event should be on the client.
the end.
Login to reply
Replies (2)
Then the relay should send the auth from the get go and not wait for a sub at the very least. retaining and resuming should be the new norm that all clients expect IMO, they don't because it wasn't a thing
oh yeah, the feature was actually retaining events. i got piqued to do it after i was struggling with getting clients to actually auth correctly with #orly (formerly #realy) and i still have the code in teh codebase, and i probably could easily add to the listener to queue up filters in this way
i'm not sure yet if it's actually a good idea, but it makes sense, superficially.