|
|
|
@ -8,7 +8,8 @@ var Filters = function (_options) { |
|
|
|
|
Filters.prototype.methods = function () { |
|
|
|
|
return { |
|
|
|
|
eth_getLogs: this.eth_getLogs.bind(this), |
|
|
|
|
eth_subscribe: this.eth_subscribe.bind(this) |
|
|
|
|
eth_subscribe: this.eth_subscribe.bind(this), |
|
|
|
|
eth_unsubscribe: this.eth_unsubscribe.bind(this) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -45,4 +46,15 @@ Filters.prototype.eth_subscribe = function (payload, cb) { |
|
|
|
|
cb(null, subscriptionId) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Filters.prototype.eth_unsubscribe = function (payload, cb) { |
|
|
|
|
console.dir("===============================") |
|
|
|
|
console.dir("===============================") |
|
|
|
|
console.dir("=== eth_unsubscribe") |
|
|
|
|
console.dir(payload.params) |
|
|
|
|
|
|
|
|
|
executionContext.logsManager.unsubscribe(payload.params[0]) |
|
|
|
|
|
|
|
|
|
cb(null, true) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
module.exports = Filters |
|
|
|
|