1
0
mirror of https://github.com/bingohuang/docker-labs.git synced 2025-07-14 01:57:32 +08:00

Change connection preferrence so it tries with WS first and fallsback to

polling
This commit is contained in:
Marcos Lilljedahl 2016-11-12 11:54:33 -03:00
parent e8b38fe717
commit b37f2469c8

View File

@ -68,7 +68,7 @@
method: 'GET',
url: '/sessions/' + $scope.sessionId,
}).then(function(response) {
var socket = io({path: '/sessions/' + sessionId + '/ws'});
var socket = io({path: '/sessions/' + sessionId + '/ws', transports: ['websocket', 'polling']});
socket.on('terminal out', function(name, data) {
var instance = $scope.idx[name];