"use strict";

var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property");
var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault");
_Object$defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _socketBase = _interopRequireDefault(require("./socket-base"));
/* eslint-disable no-restricted-globals */

/*!
 * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
 */

/* eslint-env browser */

_socketBase.default.getWebSocketConstructor = function getWebSocketConstructor() {
  if (typeof WebSocket !== 'undefined') {
    return WebSocket;
  }
  var scope = typeof globalThis !== 'undefined' ? globalThis : undefined;
  return (scope === null || scope === void 0 ? void 0 : scope.WebSocket) || (scope === null || scope === void 0 ? void 0 : scope.MozWebSocket);
};
var _default = exports.default = _socketBase.default;
//# sourceMappingURL=socket.shim.js.map
