feat: add and remove subscriptions from client requests

A hashmap of active subscriptions is maintained for each client.  REQ
and CLOSE commands will modify the subscription list.
This commit is contained in:
Greg Heartsfield
2021-12-05 18:14:14 -06:00
parent 35ceb7cb64
commit 8b4c43ae71
5 changed files with 91 additions and 27 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ pub struct EventCmd {
#[derive(Serialize, Deserialize, PartialEq, Debug, Clone)]
pub struct Event {
pub(crate) id: String,
pub id: String,
pub(crate) pubkey: String,
pub(crate) created_at: u64,
pub(crate) kind: u64,