Skip to content

Commit 6b6210e

Browse files
committed
Shutdown action cable's js
1 parent 91cd658 commit 6b6210e

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Action Cable provides the framework to deal with WebSockets in Rails.
22
// You can generate new channels where WebSocket features live using the `bin/rails generate channel` command.
33

4-
import { createConsumer } from "@rails/actioncable"
4+
// TODO
5+
// - Configure redis
6+
// import { createConsumer } from "@rails/actioncable"
57

6-
export default createConsumer()
8+
// export default createConsumer()

app/javascript/channels/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// Load all the channels within this directory and all subdirectories.
22
// Channel files must be named *_channel.js.
33

4-
const channels = require.context('.', true, /_channel\.js$/)
5-
channels.keys().forEach(channels)
4+
// TODO
5+
// - Handle requests through subscription
6+
// const channels = require.context('.', true, /_channel\.js$/)
7+
// channels.keys().forEach(channels)

0 commit comments

Comments
 (0)