diff options
Diffstat (limited to 'actioncable/app/javascript/action_cable/consumer.js')
-rw-r--r-- | actioncable/app/javascript/action_cable/consumer.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/actioncable/app/javascript/action_cable/consumer.js b/actioncable/app/javascript/action_cable/consumer.js index c484ceebbd..e8440f39f5 100644 --- a/actioncable/app/javascript/action_cable/consumer.js +++ b/actioncable/app/javascript/action_cable/consumer.js @@ -1,4 +1,5 @@ -import ActionCable from "./index" +import Connection from "./connection" +import Subscriptions from "./subscriptions" // The ActionCable.Consumer establishes the connection to a server-side Ruby Connection object. Once established, // the ActionCable.ConnectionMonitor will ensure that its properly maintained through heartbeats and checking for stale updates. @@ -29,8 +30,8 @@ import ActionCable from "./index" export default class Consumer { constructor(url) { this.url = url - this.subscriptions = new ActionCable.Subscriptions(this) - this.connection = new ActionCable.Connection(this) + this.subscriptions = new Subscriptions(this) + this.connection = new Connection(this) } send(data) { |