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 Replace window references in ActionCable with self 2019-01-14 17:44:35 -08:00
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 update from PR #36222 2020-02-12 13:31:43 -05:00
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 Ensure @rails/actioncable package contains complete source 2019-08-15 09:19:59 -04:00
logger.js Added an example of logging 2020-07-06 23:32:55 +05:30
subscription.js Convert ActionCable javascript to ES2015 modules with modern build environment 2018-11-02 08:41:05 -07:00
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