An asynchronous websocket client/server implementation for HTTP/1 and HTTP/2.
Please see the project documentation for more details.
-
Getting Started - This guide shows you how to implement a basic client and server.
-
Rails Integration - This guide explains how to use
async-websocketwith Rails.
Please see the project releases for all releases.
- Improved error handling.
- Modernized the gem and refreshed dependencies.
- Improved
connection&.closehandling.
- Added nonce processing to HTTP/2 WebSockets for HTTP/1 proxy compatibility.
- Added
ConnectionErrorwith access to the failed response.
- Updated the Rails integration guide summary.
- Modernized the gem and refreshed dependencies.
- Compared requested WebSocket protocols case-insensitively.
- Updated the Binance, chat, MUD, and Rack examples.
- Improved documentation, including the Rails integration guide.
- Removed obsolete Polygon.io and Utopia examples.
- Removed the direct dependency on
async-io. - Updated the
sus-fixtures-async-httpdependency.
- Improved validation of WebSocket requests.
- Ensured HTTP/2 requests include the
:schemepseudo-header. - Improved HTTP/1 stream checks.
- Fixed arguments passed to 404 responses.
- Updated documentation and links.
- Updated the minimum
protocol-websocketversion.
We welcome contributions to this project.
- Fork it.
- Create your feature branch (
git checkout -b my-new-feature). - Commit your changes (
git commit -am 'Add some feature'). - Push to the branch (
git push origin my-new-feature). - Create new Pull Request.
To run the test suite:
bundle exec susTo make a new release:
bundle exec bake gem:release:patch # or minor or majorIn order to protect users of this project, we require all contributors to comply with the Developer Certificate of Origin. This ensures that all contributions are properly licensed and attributed.
This project is best served by a collaborative and respectful environment. Treat each other professionally, respect differing viewpoints, and engage constructively. Harassment, discrimination, or harmful behavior is not tolerated. Communicate clearly, listen actively, and support one another. If any issues arise, please inform the project maintainers.