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

10
app/jobs/checkin_job.rb Normal file
View File

@@ -0,0 +1,10 @@
class CheckinJob < ApplicationJob
queue_as :default
def perform()
table = DiningFacility.get_checkin_booking
ActionCable.server.broadcast "checkin_channel",table: table
end
end