socketry / async-websocket

Asynchronous WebSocket client and server, supporting HTTP/1 and HTTP/2 for Ruby.
MIT License
166 stars 18 forks source link

Ensure the client is closed when closing the connection. #47

Closed ioquatix closed 1 year ago

ioquatix commented 1 year ago

When returning a single connection object, decorate it so that calling close also closes the underlying client.

Fixes #46.

Types of Changes

Contribution