1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actioncable/test
Dan Spinosa 6d7c12274e
Client ensures subscribe command is confirmed. (#41581)
A SubscriptionGuarantor maintains a set of pending subscriptions,
resending the subscribe command unless and until the subscription
is confirmed or rejected by the server or cancelled client-side.

A race condition in the ActionCable server - where an unsubscribe
is sent, followed rapidly by a subscribe, but handled in the reverse
order - necessitates this enhancement.  Indeed, the subscriptions created
and torn down by Turbo Streams amplifies the existence of this race
condition.
2021-09-26 10:06:27 -07:00
..
channel add connection_identifier assertion to ConnectionStub test 2021-06-24 07:53:02 -04:00
connection Do not allow subscribing to Base channel 2020-11-24 22:30:03 -05:00
javascript/src Client ensures subscribe command is confirmed. (#41581) 2021-09-26 10:06:27 -07:00
server Enable Style/RedundantBegin cop to avoid newly adding redundant begin block 2018-12-21 06:12:42 +09:00
stubs Introduce ActionCable::Channel#stop_stream_from/for to unsubscribe specific streams (#37171) 2020-01-17 13:39:06 -08:00
subscription_adapter Allow testing action cable with a different redis port 2021-08-04 18:17:47 -04:00
client_test.rb Update guide and actioncable tests to use appropriate concurrent-ruby class 2021-09-15 17:50:49 +02:00
javascript_package_test.rb Enforce that actioncable compiled JS bundle is in sync with source code 2019-10-19 02:26:31 +02:00
test_helper.rb Depend on ruby/debug, replacing Byebug 2021-09-08 17:35:41 +02:00
test_helper_test.rb Passing in a Hash instance as non-kwargs parameters has to be curly braced 2019-09-07 03:21:45 +09:00
worker_test.rb Inherit all actioncable's test classes from ActionCable::TestCase 2018-06-08 23:23:06 +03:00