mirror of
https://github.com/bingohuang/docker-labs.git
synced 2025-07-18 13:27:27 +08:00
Change connection preferrence so it tries with WS first and fallsback to
polling
This commit is contained in:
parent
e8b38fe717
commit
b37f2469c8
@ -68,7 +68,7 @@
|
|||||||
method: 'GET',
|
method: 'GET',
|
||||||
url: '/sessions/' + $scope.sessionId,
|
url: '/sessions/' + $scope.sessionId,
|
||||||
}).then(function(response) {
|
}).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) {
|
socket.on('terminal out', function(name, data) {
|
||||||
var instance = $scope.idx[name];
|
var instance = $scope.idx[name];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user