Skip to content

Commit

Permalink
Store connectionDetails on connectionManager object
Browse files Browse the repository at this point in the history
So can easily examine arbitrary fields from the console
  • Loading branch information
SimonWoolf committed Dec 8, 2017
1 parent 033f780 commit d1438ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions common/lib/transport/connectionmanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ var ConnectionManager = (function() {

this.queuedMessages = new MessageQueue();
this.msgSerial = 0;
this.connectionDetails = undefined;
this.connectionId = undefined;
this.connectionKey = undefined;
this.connectionSerial = undefined;
Expand Down Expand Up @@ -1520,6 +1521,7 @@ var ConnectionManager = (function() {
if(!connectionDetails) {
return;
}
this.connectionDetails = connectionDetails;
var clientId = connectionDetails.clientId;
if(clientId) {
var err = this.realtime.auth._uncheckedSetClientId(clientId);
Expand Down

0 comments on commit d1438ef

Please sign in to comment.