getFilterChanges -> getFilterMessages , subscribe & unsubscribe
subscription is currently not working (method not found)
This commit is contained in:
parent
689993a592
commit
b13cd0d484
@ -69,9 +69,9 @@ export default class Shh {
|
||||
.execute('shh_newMessageFilter', filterObj);
|
||||
}
|
||||
|
||||
getFilterChanges (identity) {
|
||||
getFilterMessages (filterId) {
|
||||
return this._transport
|
||||
.execute('shh_getFilterChanges', identity);
|
||||
.execute('shh_getFilterMessages', filterId);
|
||||
}
|
||||
|
||||
deleteMessageFilter (filterId) {
|
||||
@ -79,13 +79,13 @@ export default class Shh {
|
||||
.execute('shh_deleteMessageFilter', filterId);
|
||||
}
|
||||
|
||||
subscribe (filterObj) {
|
||||
subscribe (filterObj, callback) {
|
||||
return this._transport
|
||||
.execute('shh_subscribe', filterObj);
|
||||
.subscribe('shh', callback, filterObj);
|
||||
}
|
||||
|
||||
unsubscribe (subscriptionId) {
|
||||
return this._transport
|
||||
.execute('shh_unsubscribe', subscriptionId);
|
||||
.unsubscribe(subscriptionId);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user