"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),t=require("./get-channel-name.js"),r=require("./subscriptions-client.factory.js");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=n(e);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){i.default(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var u={subscribe:function(e,n){var i=n.onDataReceive,o=r.SubscriptionsClientFactory.init(),u=t.getChannelName(e);return o.subscribe(u,(function(t){return i(c(c({},e),{},{data:t}))}))},onConnectionChange:function(e){return r.SubscriptionsClientFactory.init().onConnectionChange(e)},disconnect:function(){r.SubscriptionsClientFactory.init().disconnect()}};exports.socketClientV2=u;
//# sourceMappingURL=socket-client.v2.js.map
