Class: EchoChannel
- Inherits:
-
ApplicationCable::Channel
- Object
- ApplicationCable::Channel
- EchoChannel
- Defined in:
- lib/rubybench_runner/rails/benchmarks/support/echo_channel.rb
Instance Method Summary collapse
Instance Method Details
#ding(data) ⇒ Object
10 11 12 |
# File 'lib/rubybench_runner/rails/benchmarks/support/echo_channel.rb', line 10 def ding(data) transmit(dong: data['message']) end |
#subscribed ⇒ Object
2 3 4 |
# File 'lib/rubybench_runner/rails/benchmarks/support/echo_channel.rb', line 2 def subscribed stream_from "echo_channel" end |
#unsubscribed ⇒ Object
6 7 8 |
# File 'lib/rubybench_runner/rails/benchmarks/support/echo_channel.rb', line 6 def unsubscribed # Any cleanup needed when channel is unsubscribed end |