File: D:/HostingSpaces/SBogers10/shop.komma.nl/node_modules/apollo-link-ws/lib/bundle.cjs.js
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var tslib = require('tslib');
var apolloLink = require('apollo-link');
var subscriptionsTransportWs = require('subscriptions-transport-ws');
var WebSocketLink = (function (_super) {
tslib.__extends(WebSocketLink, _super);
function WebSocketLink(paramsOrClient) {
var _this = _super.call(this) || this;
if (paramsOrClient instanceof subscriptionsTransportWs.SubscriptionClient) {
_this.subscriptionClient = paramsOrClient;
}
else {
_this.subscriptionClient = new subscriptionsTransportWs.SubscriptionClient(paramsOrClient.uri, paramsOrClient.options, paramsOrClient.webSocketImpl);
}
return _this;
}
WebSocketLink.prototype.request = function (operation) {
return this.subscriptionClient.request(operation);
};
return WebSocketLink;
}(apolloLink.ApolloLink));
exports.WebSocketLink = WebSocketLink;
//# sourceMappingURL=bundle.cjs.js.map