Master merge updates (conflicts)
This commit is contained in:
parent
6a480ffb5b
commit
bba1688981
@ -115,7 +115,7 @@ export default class SecureApi extends Api {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get isConnected () {
|
get isConnected () {
|
||||||
return this._transport.isConnected;
|
return this.provider.isConnected;
|
||||||
}
|
}
|
||||||
|
|
||||||
get needsToken () {
|
get needsToken () {
|
||||||
@ -123,7 +123,7 @@ export default class SecureApi extends Api {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get secureToken () {
|
get secureToken () {
|
||||||
return this._transport.token;
|
return this.provider.token;
|
||||||
}
|
}
|
||||||
|
|
||||||
connect () {
|
connect () {
|
||||||
@ -252,11 +252,11 @@ export default class SecureApi extends Api {
|
|||||||
.then(() => {
|
.then(() => {
|
||||||
// Update the URL and token in the transport layer
|
// Update the URL and token in the transport layer
|
||||||
this.transport.url = SecureApi.transportUrl(this._wsUrl, this.protocol);
|
this.transport.url = SecureApi.transportUrl(this._wsUrl, this.protocol);
|
||||||
this.transport.updateToken(token, false);
|
this.provider.updateToken(token, false);
|
||||||
|
|
||||||
log.debug('connecting with token', token);
|
log.debug('connecting with token', token);
|
||||||
|
|
||||||
return this.transport.connect();
|
return this.provider.connect();
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
log.debug('connected with', token);
|
log.debug('connected with', token);
|
||||||
|
Loading…
Reference in New Issue
Block a user