This commit is contained in:
Aung Myo
2017-09-01 16:55:51 +06:30
parent 2be93e413d
commit fc5192157b
11 changed files with 55 additions and 38 deletions

View File

@@ -7,7 +7,7 @@ module ApplicationCable
end
# Order Queue Station Channel
class OQSChannel < ActionCable::Channel::Base
class OrderQueueStationChannel < ActionCable::Channel::Base
end

View File

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

View File

@@ -4,6 +4,7 @@ class OrderQueueStationChannel < ApplicationCable::Channel
end
def unsubscribed
stop_all_streams
# Any cleanup needed when channel is unsubscribed
end