update cable
This commit is contained in:
@@ -9,6 +9,12 @@
|
||||
(function() {
|
||||
this.App || (this.App = {});
|
||||
|
||||
// var hostname = location.hostname;
|
||||
// var port = location.port;
|
||||
// var host = hostname + ":" + port + "/cable"
|
||||
// console.log(host);
|
||||
// App.cable = ActionCable.createConsumer();
|
||||
// console.log(App.cable);
|
||||
App.cable = ActionCable.createConsumer();
|
||||
|
||||
}).call(this);
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
App.order = App.cable.subscriptions.create('OrderChannel', {
|
||||
// App.messages = App.cable.subscriptions.create('MessagesChannel', {
|
||||
|
||||
connected: function() {},
|
||||
|
||||
disconnected: function() {},
|
||||
|
||||
Reference in New Issue
Block a user