Sha256: 5587f49413162691b429015c680debb470e159a2f76e9623dc51d98cfc5c9fec

Contents?: true

Size: 492 Bytes

Versions: 22

Compression:

Stored size: 492 Bytes

Contents

// Action Cable provides the framework to deal with WebSockets in Rails.
// You can generate new channels where WebSocket features live using the `bin/rails generate channel` command.

import { createConsumer } from '@anycable/web'

let cableProtocol = document.head.querySelector('meta[name=actioncable-protocol]')
cableProtocol = cableProtocol && cableProtocol.content
cableProtocol = cableProtocol || 'actioncable-v1-ext-json'

export default createConsumer({
  protocol: cableProtocol
})

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
pg_rails-7.0.8.pre.alpha.56 pg_layout/app/javascript/channels/consumer.js
pg_rails-7.0.8.pre.alpha.55 pg_layout/app/javascript/channels/consumer.js
pg_rails-7.0.8.pre.alpha.54 pg_layout/app/javascript/channels/consumer.js
pg_rails-7.0.8.pre.alpha.53 pg_layout/app/javascript/channels/consumer.js
pg_rails-7.0.8.pre.alpha.52 pg_layout/app/javascript/channels/consumer.js
pg_rails-7.0.8.pre.alpha.51 pg_layout/app/javascript/channels/consumer.js
pg_rails-7.0.8.pre.alpha.50 pg_layout/app/javascript/channels/consumer.js
pg_rails-7.0.8.pre.alpha.49 pg_layout/app/javascript/channels/consumer.js
pg_rails-7.0.8.pre.alpha.48 pg_layout/app/javascript/channels/consumer.js
pg_rails-7.0.8.pre.alpha.47 pg_layout/app/javascript/channels/consumer.js
pg_rails-7.0.8.pre.alpha.46 pg_layout/app/javascript/channels/consumer.js
pg_rails-7.0.8.pre.alpha.45 pg_layout/app/javascript/channels/consumer.js
pg_rails-7.0.8.pre.alpha.44 pg_layout/app/javascript/channels/consumer.js
pg_rails-7.0.8.pre.alpha.43 pg_layout/app/javascript/channels/consumer.js
pg_rails-7.0.8.pre.alpha.42 pg_layout/app/javascript/channels/consumer.js
pg_rails-7.0.8.pre.alpha.41 pg_layout/app/javascript/channels/consumer.js
pg_rails-7.0.8.pre.alpha.40 pg_layout/app/javascript/channels/consumer.js
pg_rails-7.0.8.pre.alpha.39 pg_layout/app/javascript/channels/consumer.js
pg_rails-7.0.8.pre.alpha.38 pg_layout/app/javascript/channels/consumer.js
pg_rails-7.0.8.pre.alpha.37 pg_layout/app/javascript/channels/consumer.js