mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
436ec799a4
introduced in a0ea528b61
.
14 lines
417 B
Ruby
14 lines
417 B
Ruby
# frozen_string_literal: true
|
|
|
|
class SuccessAdapter < ActionCable::SubscriptionAdapter::Base
|
|
def broadcast(channel, payload)
|
|
end
|
|
|
|
def subscribe(channel, callback, success_callback = nil)
|
|
@@subscribe_called = { channel: channel, callback: callback, success_callback: success_callback }
|
|
end
|
|
|
|
def unsubscribe(channel, callback)
|
|
@@unsubscribe_called = { channel: channel, callback: callback }
|
|
end
|
|
end
|