Class: Async::WebSocket::Client::Framer
- Inherits:
-
Protocol::WebSocket::Framer
- Object
- Protocol::WebSocket::Framer
- Async::WebSocket::Client::Framer
- Defined in:
- lib/async/websocket/client.rb
Instance Method Summary collapse
- #close ⇒ Object
-
#initialize(pool, connection, stream) ⇒ Framer
constructor
A new instance of Framer.
Constructor Details
#initialize(pool, connection, stream) ⇒ Framer
Returns a new instance of Framer.
72 73 74 75 76 |
# File 'lib/async/websocket/client.rb', line 72 def initialize(pool, connection, stream) super(stream) @pool = pool @connection = connection end |
Instance Method Details
#close ⇒ Object
78 79 80 81 82 83 84 85 86 |
# File 'lib/async/websocket/client.rb', line 78 def close super if @pool @pool.release(@connection) @pool = nil @connection = nil end end |