File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change
1
+ module HotwireSpark ::ActionCable ::SolidCableWithSafeReloads
2
+ private
3
+ def broadcast_messages
4
+ Rails . application . reloader . wrap do
5
+ super
6
+ end
7
+ end
8
+ end
Original file line number Diff line number Diff line change @@ -19,6 +19,11 @@ def install
19
19
def configure_middleware
20
20
::ActionCable ::Server ::Base . prepend ( HotwireSpark ::ActionCable ::PersistentCableServer )
21
21
22
+ # TODO: Temporary patch until this gets merged https://github.com/rails/solid_cable/pull/50
23
+ if defined? ( ::ActionCable ::SubscriptionAdapter ::SolidCable ::Listener )
24
+ ActionCable ::SubscriptionAdapter ::SolidCable ::Listener . prepend ( HotwireSpark ::ActionCable ::SolidCableWithSafeReloads )
25
+ end
26
+
22
27
middleware . insert_before ActionDispatch ::Executor , HotwireSpark ::ActionCable ::PersistentCableMiddleware
23
28
middleware . use HotwireSpark ::Middleware
24
29
end
You can’t perform that action at this time.
0 commit comments