Files
sx-fc/app/assets/javascripts/cable.js
2018-05-18 11:15:25 +06:30

21 lines
593 B
JavaScript
Executable File

// Action Cable provides the framework to deal with WebSockets in Rails.
// You can generate new channels where WebSocket features live using the `rails generate channel` command.
//= require action_cable
//= require_self
//= require_tree ./channels
// Temp Disable
(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);