Proper signer Pub-Sub for pending requests. (#5594)

* Signer subscription.

* Fixing RPC tests.

* Improve notification performance.
This commit is contained in:
Tomasz Drwięga
2017-05-17 16:20:41 +02:00
committed by Gav Wood
parent da8be072fa
commit 240704fb54
12 changed files with 187 additions and 127 deletions

View File

@@ -195,11 +195,6 @@ export default class Ws extends JsonRpcBase {
}
_onMessage = (event) => {
// Event sent by Signer Broadcaster
if (event.data === 'new_message') {
return false;
}
try {
const result = JSON.parse(event.data);
const { method, params, json, resolve, reject } = this._messages[result.id];