Class: Firehose::Rack::Consumer::WebSocket::MultiplexingHandler::Subscription
- Inherits:
-
Struct
- Object
- Struct
- Firehose::Rack::Consumer::WebSocket::MultiplexingHandler::Subscription
- Defined in:
- lib/firehose/rack/consumer/web_socket.rb
Instance Attribute Summary collapse
-
#channel ⇒ Object
Returns the value of attribute channel.
-
#deferrable ⇒ Object
Returns the value of attribute deferrable.
Instance Method Summary collapse
Instance Attribute Details
#channel ⇒ Object
Returns the value of attribute channel
110 111 112 |
# File 'lib/firehose/rack/consumer/web_socket.rb', line 110 def channel @channel end |
#deferrable ⇒ Object
Returns the value of attribute deferrable
110 111 112 |
# File 'lib/firehose/rack/consumer/web_socket.rb', line 110 def deferrable @deferrable end |
Instance Method Details
#close ⇒ Object
111 112 113 114 |
# File 'lib/firehose/rack/consumer/web_socket.rb', line 111 def close deferrable.fail :disconnect channel.unsubscribe(deferrable) end |