update oqs action cable for order cahnnel and oqs channel
This commit is contained in:
11
app/channels/order_channel.rb
Normal file
11
app/channels/order_channel.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
class OrderChannel < ApplicationCable::Channel
|
||||
def subscribed
|
||||
stream_from "order_channel"
|
||||
end
|
||||
|
||||
def unsubscribed
|
||||
stop_all_streams
|
||||
# Any cleanup needed when channel is unsubscribed
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user