add print action cable

This commit is contained in:
NyanLinHtut
2020-07-28 13:54:08 +06:30
parent 8f0950f5a1
commit 366f98e51b
11 changed files with 118 additions and 25 deletions

View File

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