Class: SseCable::Subscription

Inherits:
Object
  • Object
show all
Defined in:
lib/sse_cable/subscription.rb

Instance Method Summary collapse

Constructor Details

#initialize(channel) ⇒ Subscription

Returns a new instance of Subscription.



5
6
7
# File 'lib/sse_cable/subscription.rb', line 5

def initialize(channel)
  # Initialize subscription for a channel
end

Instance Method Details

#subscribe(connection) ⇒ Object



9
10
11
# File 'lib/sse_cable/subscription.rb', line 9

def subscribe(connection)
  # Subscribe connection to the subscription
end

#unsubscribe(connection) ⇒ Object



13
14
15
# File 'lib/sse_cable/subscription.rb', line 13

def unsubscribe(connection)
  # Unsubscribe connection from the subscription
end