diff options
Diffstat (limited to 'actioncable/app/javascript/action_cable/subscriptions.js')
-rw-r--r-- | actioncable/app/javascript/action_cable/subscriptions.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/actioncable/app/javascript/action_cable/subscriptions.js b/actioncable/app/javascript/action_cable/subscriptions.js index 65bdcc4ece..712ff50d28 100644 --- a/actioncable/app/javascript/action_cable/subscriptions.js +++ b/actioncable/app/javascript/action_cable/subscriptions.js @@ -1,3 +1,5 @@ +import ActionCable from "./index" + // Collection class for creating (and internally managing) channel subscriptions. The only method intended to be triggered by the user // us ActionCable.Subscriptions#create, and it should be called through the consumer like so: // @@ -6,7 +8,8 @@ // App.appearance = App.cable.subscriptions.create("AppearanceChannel") // // For more details on how you'd configure an actual channel subscription, see ActionCable.Subscription. -ActionCable.Subscriptions = class Subscriptions { + +export default class Subscriptions { constructor(consumer) { this.consumer = consumer this.subscriptions = [] |