aboutsummaryrefslogtreecommitdiffstats
path: root/test/stubs
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2015-10-16 21:05:33 -0500
committerPratik Naik <pratiknaik@gmail.com>2015-10-16 21:11:21 -0500
commit84b1f0a3e622d35bf1fb1b2662bc0262a040e119 (patch)
treecbfef05e91f6e071cc90379ebdf63cf227b91d83 /test/stubs
parentdf5a32dfbc94723d847aa8d8034041a2bd8751e2 (diff)
downloadrails-84b1f0a3e622d35bf1fb1b2662bc0262a040e119.tar.gz
rails-84b1f0a3e622d35bf1fb1b2662bc0262a040e119.tar.bz2
rails-84b1f0a3e622d35bf1fb1b2662bc0262a040e119.zip
Send subscription confirmation from server to the client to avoid race conditions.
Without this, it's very easy to send messages over a subscription even before the redis pubsub has been fully initialized. Now we delay calling the subscription#connected method on the client side until we receive a subscription confirmation message from the server.
Diffstat (limited to 'test/stubs')
0 files changed, 0 insertions, 0 deletions