add bill channel for req bill

This commit is contained in:
Yan
2017-09-07 15:35:00 +06:30
parent e9a305b573
commit f67d4197ec
8 changed files with 48 additions and 3 deletions

View File

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