Slide 26
Slide 26 text
app/channels/rooms_channel.rb
1 # Be sure to restart your server when you modify…
2 class RoomChannel < ApplicationCable::Channel
3 def subscribed
4 # stream_from "some_channel"
5 end
6
7 def unsubscribed
8 # Any cleanup needed when channel is unsubscribed
9 end
10
11 def speak
12 end
13 end