mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
have remote.js emit all messages
This commit is contained in:
@@ -485,13 +485,10 @@ Remote.prototype._connect_message = function (ws, json) {
|
||||
this.emit('ledger_closed', message.ledger_hash, message.ledger_index);
|
||||
break;
|
||||
|
||||
// Account subscription event
|
||||
case 'account':
|
||||
if (this.trace) utils.logObject("remote: account: %s", message);
|
||||
break;
|
||||
|
||||
// All other messages
|
||||
default:
|
||||
unexpected = true;
|
||||
if (this.trace) utils.logObject("remote: "+message.type+": %s", message);
|
||||
this.emit(message.type, message);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user