@bigbinary/neeto-commons-frontend 2.0.96 → 2.0.98

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/utils.js CHANGED
@@ -3198,8 +3198,9 @@ var getWebsocketURL = function getWebsocketURL() {
3198
3198
  subdomain: globalProps.organization.subdomain
3199
3199
  });
3200
3200
  };
3201
+ var consumer = createConsumer(getWebsocketURL);
3201
3202
  var createSubscription = function createSubscription(channelName, callbacks) {
3202
- var subscription = createConsumer(getWebsocketURL).subscriptions.create(channelName, callbacks);
3203
+ var subscription = consumer.subscriptions.create(channelName, callbacks);
3203
3204
  return subscription;
3204
3205
  };
3205
3206