Can you use Actioncable for multiple things in your project?
I want to use actioncable to pull notifications AND also use it for user to user chatting. Is this possible and pain free to do?
I guess what i'm asking is, can i join these two videos together into one project without doing anything special:
https://gorails.com/episodes/realtime-notifications-with-actioncable?autoplay=1
https://gorails.com/episodes/direct-messages-in-realtime-with-actioncable?autoplay=1
Hey Masud,
Absolutely. The way it's designed is that you can create a new channel for each feature you want and the ActionCable code internally will automatically separate out the messages for each of those channels. That means you can have one for notifications and one for chat and they will be separated out between those channels.