add cable but not complete
This commit is contained in:
@@ -1,4 +1,14 @@
|
||||
module ApplicationCable
|
||||
class Channel < ActionCable::Channel::Base
|
||||
end
|
||||
class Channel < ActionCable::Channel::Base
|
||||
end
|
||||
# Order Queue Station Channel
|
||||
class OrderChannel < ActionCable::Channel::Base
|
||||
|
||||
end
|
||||
|
||||
# Order Queue Station Channel
|
||||
class OQSChannel < ActionCable::Channel::Base
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
13
app/channels/order_queue_station_channel.rb
Normal file
13
app/channels/order_queue_station_channel.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
class OrderQueueStationChannel < ApplicationCable::Channel
|
||||
def subscribed
|
||||
stream_from "order_queue_station_channel"
|
||||
end
|
||||
|
||||
def unsubscribed
|
||||
# Any cleanup needed when channel is unsubscribed
|
||||
end
|
||||
|
||||
def order(message)
|
||||
# ToDo
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user