import e from"@babel/runtime/helpers/defineProperty";import{getChannelName as t}from"./get-channel-name.js";import{SubscriptionsClientFactory as r}from"./subscriptions-client.factory.js";function n(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 o(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?n(Object(o),!0).forEach((function(r){e(t,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):n(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var c={subscribe:function(e,n){var c=n.onDataReceive,i=r.init(),s=t(e);return i.subscribe(s,(function(t){return c(o(o({},e),{},{data:t}))}))},onConnectionChange:function(e){return r.init().onConnectionChange(e)},disconnect:function(){r.init().disconnect()}};export{c as socketClientV2};
//# sourceMappingURL=socket-client.v2.js.map
