1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actioncable/app/javascript/action_cable
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
..
adapters.js
connection.js Client ensures subscribe command is confirmed. (#41581) 2021-09-26 10:06:27 -07:00
connection_monitor.js Prevent thundering herd of Action Cable clients 2021-02-02 10:43:05 -06:00
consumer.js
index.js Client ensures subscribe command is confirmed. (#41581) 2021-09-26 10:06:27 -07:00
index_with_name_deprecation.js Output Action Cable JS without transpiling and as ESM (#42856) 2021-08-06 14:00:43 +02:00
internal.js
logger.js Added an example of logging 2020-07-06 23:32:55 +05:30
subscription.js
subscription_guarantor.js Client ensures subscribe command is confirmed. (#41581) 2021-09-26 10:06:27 -07:00
subscriptions.js Client ensures subscribe command is confirmed. (#41581) 2021-09-26 10:06:27 -07:00