JS: Forward account and transaction publishes.

This commit is contained in:
Arthur Britto
2013-01-17 13:02:24 -08:00
parent 809868c6fc
commit a8b1b205d5

View File

@@ -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(