update call waiter

This commit is contained in:
Aung Myo
2017-12-04 19:23:37 +06:30
parent 0c0ba0858a
commit 3354733e41
10 changed files with 123 additions and 1 deletions

View File

@@ -15,4 +15,9 @@ module ApplicationCable
class BillChannel < ActionCable::Channel::Base
end
# Call Waiter Channel
class CallWaiterChannel < ActionCable::Channel::Base
end
end

View File

@@ -1,7 +1,7 @@
module ApplicationCable
class Connection < ActionCable::Connection::Base
def connect
logger.add_tags "ActionCable"
logger.add_tags "SX-ActionCable"
end
end
end

View File

@@ -0,0 +1,14 @@
class CallWaiterChannel < ApplicationCable::Channel
def subscribed
stream_from "call_waiter_channel"
end
def unsubscribed
stop_all_streams
# Any cleanup needed when channel is unsubscribed
end
def order(message)
# ToDo
end
end