15 lines
270 B
Ruby
Executable File
15 lines
270 B
Ruby
Executable File
class OrderQueueStationChannel < ApplicationCable::Channel
|
|
def subscribed
|
|
stream_from "order_queue_station_channel"
|
|
end
|
|
|
|
def unsubscribed
|
|
stop_all_streams
|
|
# Any cleanup needed when channel is unsubscribed
|
|
end
|
|
|
|
def order(message)
|
|
# ToDo
|
|
end
|
|
end
|