You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an issue that I want to trigger updates best on filters I have sent in as params in the channel.
Sending it in and set all that up as variables worked fine, but I can't find a way to access those to trigger updates.
So what I want to do is:
set up a method in my channel that getting all the data and either call broadcast_to or return the data to send if needed
call it in from the server, like Cable::Server.call_method_on_channel("TurboChannel") or something that calls the method in the channel
I was looking at the action part of it, but I DON'T want to send it to the frontend/through WebSocket. I want to trigger a method, that uses a variable on channels to send that data to that channel. As every channel has different filters/params.
Right now I set the variables in my channel in subscribe like this:
I have an issue that I want to trigger updates best on filters I have sent in as params in the channel.
Sending it in and set all that up as variables worked fine, but I can't find a way to access those to trigger updates.
So what I want to do is:
Cable::Server.call_method_on_channel("TurboChannel")
or something that calls the method in the channelI was looking at the action part of it, but I DON'T want to send it to the frontend/through WebSocket. I want to trigger a method, that uses a variable on channels to send that data to that channel. As every channel has different filters/params.
Right now I set the variables in my channel in subscribe like this:
And I added an method that I am testing to update the data based on those data:
The text was updated successfully, but these errors were encountered: