Author Message
mahmood.atcom.ae
Joined: Jul 21, 2019
Messages: 8
Offline
when trying to connect to AACC with Agent JS SDK, it ties with WS firs but the AACC is responding with invalid redirect with invalid location whch leads to redirect loop and the browser cancels the WS connection, now as for why AACC is doing so (Security is enabled) i have no idea, but as a workaround that works for me i modified the SDK to connect to WSS without trying WS:
function y(i) {

var r;
// i
// ? ((r =
// "wss://" + n + "/IntegrationPortal/SessionHandler.ashx?Service=" + t),
// f.info("Attempting secure WebSocket connection to: " + r))
// : ((r =
// "ws://" + n + "/IntegrationPortal/SessionHandler.ashx?Service=" + t),
// f.info("Attempting WebSocket connection to: " + r));

r = "wss://" + n + "/IntegrationPortal/SessionHandler.ashx?Service=" + t;
f.info("Attempting secure WebSocket connection to: " + r);
e = new WebSocket(r);
e.onopen = k;
e.onmessage = d;
e.onclose = g;
}


it would be a good option if we can chose if the connection is secure or not in the SDK to avoid AACC IIS troubles...
Go to:   
Mobile view