From d76e85bf78ad8c1cd18ee45308a215d41a466cad Mon Sep 17 00:00:00 2001 From: Arthur Britto Date: Thu, 17 Jan 2013 13:02:24 -0800 Subject: [PATCH] JS: Forward account and transaction publishes. --- src/js/remote.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/js/remote.js b/src/js/remote.js index 992560ee..cf3e1086 100644 --- a/src/js/remote.js +++ b/src/js/remote.js @@ -518,6 +518,18 @@ Remote.prototype._connect_message = function (ws, json) { this.emit('ledger_closed', message); break; + case 'account': + // XXX If not trusted, need proof. + + this.emit('account', message); + break; + + case 'transaction': + // XXX If not trusted, need proof. + + this.emit('transaction', message); + break; + case 'serverStatus': // This message is only received when online. As we are connected, it is the definative final state. this._set_state(