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
since every subscribe call does a setCable which in turn calls ActionCable.createConsumer isn't this creating 2 connections to the same cable for the 2 channels?
Sorry if this obvious, but I wanted to make sure since I was thinking it might be possible to have the cable support several channels with the same consumer and have disconnect and unsubscribe(channel) methods.
The text was updated successfully, but these errors were encountered:
I have a question about how the code works, say I have 2 channels,
NotificationsChannel
andChatsChannel
, then I would go and do:since every
subscribe
call does asetCable
which in turn callsActionCable.createConsumer
isn't this creating 2 connections to the same cable for the 2 channels?Sorry if this obvious, but I wanted to make sure since I was thinking it might be possible to have the cable support several channels with the same consumer and have
disconnect
andunsubscribe(channel)
methods.The text was updated successfully, but these errors were encountered: