I'm working on a project with I use ActionCable, at the moment I'm learning about acts_as_tenant gem.
I implement it in the project, but my WebSockets don't work.
If I'm logged in subdomain1, and send data by the ActionCable on subdomain2, I receive information in subdomain1.
I need, if are you logged in subdomain1, you receive only data send in subdomain1.
How do I do that? Some Idea?
I haven't tried it, but according to https://docs.stimulusreflex.com/rtfm/authentication#multi-tenant-applications, you must set
ActsAsTenant.current_tenant
at yourApplicationCable::Connection#connect
.