I implemented actioncable for real time messaging, Now I want to know who received the message posted by me. all users are communicating using the same channel
class RoomChannel < ApplicationCable::Channel
def subscribed
stream_from "room_channel"
end
def speak(data)
Message.create_message(data, current_user)
end
end
Exact idea is described in attached image, this will perform while I reload the page, but I want to distinguish on action of receive message.