mirror of
https://github.com/ansible/awx.git
synced 2026-03-20 10:27:34 -02:30
Adding the token to the socket url
This commit is contained in:
@@ -27,7 +27,7 @@ export default
|
|||||||
|
|
||||||
if (!$rootScope.sessionTimer || ($rootScope.sessionTimer && !$rootScope.sessionTimer.isExpired())) {
|
if (!$rootScope.sessionTimer || ($rootScope.sessionTimer && !$rootScope.sessionTimer.isExpired())) {
|
||||||
// We have a valid session token, so attempt socket connection
|
// We have a valid session token, so attempt socket connection
|
||||||
// url = `${url}?session=${token}`;
|
url = `${url}?token=${token}`;
|
||||||
$log.debug('Socket connecting to: ' + url);
|
$log.debug('Socket connecting to: ' + url);
|
||||||
|
|
||||||
self.socket = new ReconnectingWebSocket(url, null, {
|
self.socket = new ReconnectingWebSocket(url, null, {
|
||||||
|
|||||||
Reference in New Issue
Block a user