David Kimura PRO said about 2 years ago on Real Time Updates with ActionCable :
  Yea, from nearly every article I've read, this is one of the most common "overlooked" things. StimulusJS may be overkill for this kind of functionality, but it make it so easy to create "situational" websocket subscriptions based on which page you're on by simply adding in the controller name. Disconnecting from a subscription also seems to be a very overlooked topic.