add channel for checkin process

This commit is contained in:
phyusin
2017-12-13 15:58:44 +06:30
parent 5ba010c1e6
commit 211db16311
8 changed files with 81 additions and 4 deletions

View File

@@ -0,0 +1,10 @@
class CheckinChannel < ApplicationCable::Channel
def subscribed
stream_from "checkin_channel"
end
def unsubscribed
stop_all_streams
# Any cleanup needed when channel is unsubscribed
end
end