Class: ActionCable::SubscriptionAdapter::Base
- Inherits:
-
Object
- Object
- ActionCable::SubscriptionAdapter::Base
show all
- Defined in:
- lib/action_cable/subscription_adapter/base.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
#initialize(server) ⇒ Base
Returns a new instance of Base.
8
9
10
11
|
# File 'lib/action_cable/subscription_adapter/base.rb', line 8
def initialize(server)
@server = server
@logger = @server.logger
end
|
Instance Attribute Details
#logger ⇒ Object
Returns the value of attribute logger.
6
7
8
|
# File 'lib/action_cable/subscription_adapter/base.rb', line 6
def logger
@logger
end
|
#server ⇒ Object
Returns the value of attribute server.
6
7
8
|
# File 'lib/action_cable/subscription_adapter/base.rb', line 6
def server
@server
end
|
Instance Method Details
#broadcast(channel, payload) ⇒ Object
13
14
15
|
# File 'lib/action_cable/subscription_adapter/base.rb', line 13
def broadcast(channel, payload)
raise NotImplementedError
end
|
#shutdown ⇒ Object
25
26
27
|
# File 'lib/action_cable/subscription_adapter/base.rb', line 25
def shutdown
raise NotImplementedError
end
|
#subscribe(channel, message_callback, success_callback = nil) ⇒ Object
17
18
19
|
# File 'lib/action_cable/subscription_adapter/base.rb', line 17
def subscribe(channel, message_callback, success_callback = nil)
raise NotImplementedError
end
|
#unsubscribe(channel, message_callback) ⇒ Object
21
22
23
|
# File 'lib/action_cable/subscription_adapter/base.rb', line 21
def unsubscribe(channel, message_callback)
raise NotImplementedError
end
|