added option for servers that want to propagate applied operations (aka the websockets connector)

This commit is contained in:
Kevin Jahns
2015-11-15 02:04:06 +01:00
parent ae12b087e7
commit 58a612eaa1
3 changed files with 32 additions and 1 deletions

View File

@@ -16,6 +16,8 @@ module.exports = function (Y) {
class AbstractDatabase {
constructor (y, opts) {
this.y = y
// whether to broadcast all applied operations (insert & delete hook)
this.forwardAppliedOperations = false
// E.g. this.listenersById[id] : Array<Listener>
this.listenersById = {}
// Execute the next time a transaction is requested