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:
parent
e8b38fe717
commit
b37f2469c8
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user