you mean outbox model, right? nip-65 and this REQUIRES nip-42 not to forget to mention ... wen nip-42 everyone?
or more exactly, the closed groups - i forget the NIP but they have a list they publish (public) that specifies where to read and write events to the group
this is something that i will most probably be working on in the future too, and the reason why i like to keep track of what you guys are doing so when i get to it i can make sure i'm doing it correctly and bring up issues as i encounter them