diff --git a/guides/source/action_cable_overview.md b/guides/source/action_cable_overview.md index 13062d336d7f2..8cb2884d9cb5c 100644 --- a/guides/source/action_cable_overview.md +++ b/guides/source/action_cable_overview.md @@ -531,7 +531,7 @@ const chatChannel = consumer.subscriptions.create({ channel: "ChatChannel", room received(data) { // data => { sent_by: "Paul", body: "This is a cool chat app." } } -} +}) chatChannel.send({ sent_by: "Paul", body: "This is a cool chat app." }) ```