diff options
Diffstat (limited to 'vnfmarket/src/main/webapp/vnfmarket/node_modules/ws/lib/browser.js')
-rw-r--r-- | vnfmarket/src/main/webapp/vnfmarket/node_modules/ws/lib/browser.js | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/ws/lib/browser.js b/vnfmarket/src/main/webapp/vnfmarket/node_modules/ws/lib/browser.js deleted file mode 100644 index 8d3a755c..00000000 --- a/vnfmarket/src/main/webapp/vnfmarket/node_modules/ws/lib/browser.js +++ /dev/null @@ -1,43 +0,0 @@ - -/** - * Module dependencies. - */ - -var global = (function() { return this; })(); - -/** - * WebSocket constructor. - */ - -var WebSocket = global.WebSocket || global.MozWebSocket; - -/** - * Module exports. - */ - -module.exports = WebSocket ? ws : null; - -/** - * WebSocket constructor. - * - * The third `opts` options object gets ignored in web browsers, since it's - * non-standard, and throws a TypeError if passed to the constructor. - * See: https://github.com/einaros/ws/issues/227 - * - * @param {String} uri - * @param {Array} protocols (optional) - * @param {Object) opts (optional) - * @api public - */ - -function ws(uri, protocols, opts) { - var instance; - if (protocols) { - instance = new WebSocket(uri, protocols); - } else { - instance = new WebSocket(uri); - } - return instance; -} - -if (WebSocket) ws.prototype = WebSocket.prototype; |