Class: Firehose::Rack::Consumer::WebSocket::MultiplexingHandler::Subscription

Inherits:
Struct
  • Object
show all
Defined in:
lib/firehose/rack/consumer/web_socket.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#channelObject

Returns the value of attribute channel

Returns:

  • (Object)

    the current value of channel



110
111
112
# File 'lib/firehose/rack/consumer/web_socket.rb', line 110

def channel
  @channel
end

#deferrableObject

Returns the value of attribute deferrable

Returns:

  • (Object)

    the current value of deferrable



110
111
112
# File 'lib/firehose/rack/consumer/web_socket.rb', line 110

def deferrable
  @deferrable
end

Instance Method Details

#closeObject



111
112
113
114
# File 'lib/firehose/rack/consumer/web_socket.rb', line 111

def close
  deferrable.fail :disconnect
  channel.unsubscribe(deferrable)
end