Reputation: 115
I am making engine for real time chat in rails. I am not able to figure out how to use actioncable in it. I am trying to implement in the same way as it is done in rails app by making channel and subscribing to channel but it is not working in my rails engine. There is not any guide on this topic as well. I will be grateful if someone could guide me in this regard.
Upvotes: 1
Views: 543
Reputation: 580
You might take a look here: https://github.com/palkan/engine-cable-app
There's a fully working example with 2 cables, one from the engine and second from the app itself.
Upvotes: 1