aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable/test/client/echo_channel.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actioncable/test/client/echo_channel.rb')
-rw-r--r--actioncable/test/client/echo_channel.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/actioncable/test/client/echo_channel.rb b/actioncable/test/client/echo_channel.rb
index 9a54080d4d..63e35f194a 100644
--- a/actioncable/test/client/echo_channel.rb
+++ b/actioncable/test/client/echo_channel.rb
@@ -7,6 +7,11 @@ class EchoChannel < ActionCable::Channel::Base
transmit(dong: data['message'])
end
+ def delay(data)
+ sleep 1
+ transmit(dong: data['message'])
+ end
+
def bulk(data)
ActionCable.server.broadcast "global", wide: data['message']
end