From 72991c16eb9d1bf8c1ef2ccb248649bbc06536c8 Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Sat, 29 Jul 2017 17:43:24 -0700 Subject: [PATCH] [DEBUG] chnage direction of arrow in protocol's SEND and RECEIVE logs They currently feel backwards. --- lib/Connection.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Connection.js b/lib/Connection.js index ff6dcfacf55..1ab5b821837 100644 --- a/lib/Connection.js +++ b/lib/Connection.js @@ -54,7 +54,7 @@ class Connection extends EventEmitter { send(method, params = {}) { let id = ++this._lastId; let message = JSON.stringify({id, method, params}); - debug('◀ SEND ' + message); + debug('SEND ► ' + message); this._ws.send(message); return new Promise((resolve, reject) => { this._callbacks.set(id, {resolve, reject, method}); @@ -65,7 +65,7 @@ class Connection extends EventEmitter { * @param {string} message */ _onMessage(message) { - debug('RECV ► ' + message); + debug('◀ RECV ' + message); let object = JSON.parse(message); if (object.id && this._callbacks.has(object.id)) { let callback = this._callbacks.get(object.id);