mirror of
https://github.com/bingohuang/docker-labs.git
synced 2025-10-05 01:43:22 +08:00
Change connection preferrence so it tries with WS first and fallsback to
polling
This commit is contained in:
@@ -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];
|
||||||
|
Reference in New Issue
Block a user