Closed martin-kufner closed 6 months ago
This does not affect when AnyCable::Rails is enabled.
Thanks for reporting! Fixed and will be released soon.
without brackets, so super is called w/ arguments
The feature (reconnect: ...
support) has been added only in Rails 7.1, so we should still super()
for older version.
Tell us about your environment
Ruby version: 3.2
Rails version: 7.1.3
anycable
gem version: 1.4.3anycable-rails
gem version: 1.4.3What did you do?
Disconnecting user with no reconnect
ActionCable.server.remote_connections.where(identity: User.find(...)).disconnect(reconnect: false)
What did you expect to happen?
reconnect is transmitted false
What actually happened?
reconnect is transmitted true
Fix
anycable/rails/action_cable_ext/remote_connections.rb:10 in disconnect IS
super() unless AnyCable::Rails.enabled?
- super is called w/o arguments SHOULD BEsuper unless AnyCable::Rails.enabled?
- without brackets, so super is called w/ arguments