Sha256: c35f937fb100cf9262a21736ffcb918d4ea49cf289509f020fa677b539113a21

Contents?: true

Size: 372 Bytes

Versions: 4

Compression:

Stored size: 372 Bytes

Contents

//= require action_cable
//= require_self

(function() {
  this.RailsApp || (this.RailsApp = {});

  if (window.location.port === "") {
    RailsApp.cable = ActionCable.createConsumer(`ws://${window.location.hostname}/cable`);
  } else {
    RailsApp.cable = ActionCable.createConsumer(`ws://${window.location.hostname}:${window.location.port}/cable`);
  }
}).call(this);

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
marty-8.5.0 app/assets/javascripts/marty/cable.js
marty-8.4.1 app/assets/javascripts/marty/cable.js
marty-8.3.1 app/assets/javascripts/marty/cable.js
marty-8.2.0 app/assets/javascripts/marty/cable.js