summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoranonymous2022-09-21 12:46:08 -0400
committeranonymous2022-09-21 12:46:08 -0400
commit8414fee43a83f46846ad075acb8c620369eaa0f7 (patch)
tree9e251e4f4e75893e8a125f882cce26bfd20dbfa2
parent8ace93096ad0116d3d30790cd6ed3a09266b50eb (diff)
added arbitrary flags, like audit
-rw-r--r--graffiti.js6
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)
}