diff options
author | theia | 2022-08-05 14:25:27 -0400 |
---|---|---|
committer | theia | 2022-08-05 14:25:27 -0400 |
commit | ac98f1499e4c38c89f555338a2edf8203d28bb8b (patch) | |
tree | 9e251e4f4e75893e8a125f882cce26bfd20dbfa2 | |
parent | 99db926be7131afbf0fe90a4366abb591b3db230 (diff) |
added arbitrary flags, like audit
-rw-r--r-- | graffiti.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/graffiti.js b/graffiti.js index 1741452..0180a87 100644 --- a/graffiti.js +++ b/graffiti.js @@ -145,6 +145,7 @@ export default class { query, updateCallback, removeCallback, + flags={}, since=null, queryID=null) { @@ -154,12 +155,12 @@ export default class { // Send the request await this.request({ type: "subscribe", - queryID, query, since + queryID, query, since, ...flags }) // Store the subscription in case of disconnections this.subscriptionData[queryID] = { - query, since, updateCallback, removeCallback, + query, since, flags, updateCallback, removeCallback, historyComplete: false } @@ -188,6 +189,7 @@ export default class { sd.query, sd.updateCallback, sd.removeCallback, + sd.flags, sd.since, queryID) } |