Skip to content

Commit

Permalink
- ensure third-party extensions do not change methods visibility
Browse files Browse the repository at this point in the history
Ref #7
  • Loading branch information
palkan committed Jan 7, 2025
1 parent fa60e6c commit 60e151f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/action_cable/connection/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,7 @@ def send_welcome_message
end

ActiveSupport.run_load_hooks(:action_cable_connection, ActionCable::Connection::Base)

# Hack to make sure legacy extensions do not changes the visibility of API methods
# (see https://github.com/anycable/actioncable-next/issues/7)
ActionCable::Connection::Base.send :public, :handle_open, :handle_close, :handle_channel_command, :transmit, :close

0 comments on commit 60e151f

Please sign in to comment.