Last active
November 5, 2018 18:31
-
-
Save shrirambalakrishnan/70937828383d613b49d69b8216946135 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# app/channels/movies_channel.rb | |
class MoviesChannel < ApplicationCable::Channel | |
# Called when any consumer subscribes to this channel. | |
def subscribed | |
stream_from "movies" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment