2019-02-11から1日間の記事一覧
Action Cableで動的にチャンネルを作成したいときは、以下のように引数を渡しましょう。 App.cable.subscriptions.create { channel: "ChatChannel", user_id: user_id } user_idが1の場合、上記のコードで以下のようなチャンネルが作成されます。 chat_chan…
Action Cableで動的にチャンネルを作成したいときは、以下のように引数を渡しましょう。 App.cable.subscriptions.create { channel: "ChatChannel", user_id: user_id } user_idが1の場合、上記のコードで以下のようなチャンネルが作成されます。 chat_chan…