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