mirror of
https://github.com/alibaba/arthas.git
synced 2024-04-21 10:21:39 +00:00
webconsole support wss (#1401)
This commit is contained in:
@@ -78,7 +78,8 @@ function getTerminalSize () {
|
||||
|
||||
/** init websocket **/
|
||||
function initWs (ip, port, agentId) {
|
||||
var path = 'ws://' + ip + ':' + port + '/ws?method=connectArthas&id=' + agentId;
|
||||
var protocol= location.protocol === 'https:' ? 'wss://' : 'ws://';
|
||||
var path = protocol + ip + ':' + port + '/ws?method=connectArthas&id=' + agentId;
|
||||
ws = new WebSocket(path);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user