update action cable for order resservation

This commit is contained in:
Aung Myo
2018-04-22 14:11:04 +06:30
parent 268cae09f5
commit 1fe48b57d0
6 changed files with 56 additions and 3 deletions

View File

@@ -0,0 +1,10 @@
class OrderReservationChannel < ApplicationCable::Channel
def subscribed
stream_from "order_reservation_channel"
end
def unsubscribed
stop_all_streams
# Any cleanup needed when channel is unsubscribed
end
end