Commit 9efc7ba2 by Jeffrey Phillips Committed by GitHub

Remove extraneous ContainerWebSocket factory (#3)

parent b78d4dc2
......@@ -6,4 +6,6 @@ bower_components
phantomjsdriver.log
.DS_Store
test/test-results.xml
npm-debug.log
{
"name": "origin-web-comon",
"version": "0.0.1",
"version": "0.0.3",
"main": [
"dist/origin-web-common.js"
],
......
......@@ -2859,16 +2859,4 @@ angular.module('openshiftCommon')
return $ws;
}];
}])
/* A WebSocket factory for kubernetesContainerTerminal */
.factory("ContainerWebSocket", ["API_CFG", "$ws", function(API_CFG, $ws) {
return function AuthWebSocket(url, protocols) {
var scheme;
if (url.indexOf("/") === 0) {
scheme = window.location.protocol === "http:" ? "ws://" : "wss://";
url = scheme + API_CFG.openshift.hostPort + url;
}
return $ws({ url: url, method: "WATCH", protocols: protocols, auth: {} });
};
}]);
{
"author": "Red Hat",
"name": "origin-web-common",
"version": "0.0.1",
"version": "0.0.3",
"license": "Apache-2.0",
"description": "Library of common services and components for OpenShift Web Console.",
"homepage": "https://github.com/openshift/origin-web-common.git",
......
......@@ -76,16 +76,4 @@ angular.module('openshiftCommon')
return $ws;
};
})
/* A WebSocket factory for kubernetesContainerTerminal */
.factory("ContainerWebSocket", function(API_CFG, $ws) {
return function AuthWebSocket(url, protocols) {
var scheme;
if (url.indexOf("/") === 0) {
scheme = window.location.protocol === "http:" ? "ws://" : "wss://";
url = scheme + API_CFG.openshift.hostPort + url;
}
return $ws({ url: url, method: "WATCH", protocols: protocols, auth: {} });
};
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment