summaryrefslogtreecommitdiff
path: root/app/javascript/channels/consumer.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/javascript/channels/consumer.js')
-rw-r--r--app/javascript/channels/consumer.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/javascript/channels/consumer.js b/app/javascript/channels/consumer.js
new file mode 100644
index 0000000..8ec3aad
--- /dev/null
+++ b/app/javascript/channels/consumer.js
@@ -0,0 +1,6 @@
+// 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 "@rails/actioncable"
+
+export default createConsumer()