summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)
}