async-websocket
async-websocket copied to clipboard
Asynchronous WebSocket client and server, supporting HTTP/1 and HTTP/2 for Ruby.
I was working on this a long time ago, I need to figure out where I ended up.
Hello, after updating to 0.22.0 from 0.19.2 and making adjustments for the new read/write interface I started getting warnings from zlib: ``` zlib(finalizer): the stream was freed prematurely. ``` Besides...
I did what I shouldn't do and updated everything at one time again, and now I can no longer connect to a websocket server behind an nginx reverse proxy. A...
I'm running this on the client side: ```ruby require 'async' require 'async/http/endpoint' require 'async/websocket/client' URL = ARGV.pop || "http://127.0.0.1:7070" Async do |task| endpoint = Async::HTTP::Endpoint.parse(URL) Async::WebSocket::Client.connect(endpoint) do |connection| 1000.times do...
On Windows 10 RubyInstaller 3.0.5, no code within my `Async::WebSocket::Client.connect` block is being run, the program just hangs. On RubyInstaller 3.1.2, the situation is even worse- it crashes with the...
This PR allows the `protocol` header of the "101 Switching Protocols" response received from the Websocket server to be compared case-insensitive. Case-insensitive comparison is because the RFC states that it...
Hello I'm trying to make a client with endless negotiation loop and I want to make the client to be reconnectable. I throwing an Exception on the middle of a...
```ruby #!/usr/bin/env ruby require 'async' require 'async/http/endpoint' require 'async/websocket/client' URL = "wss://polkadot-rpc.dwellir.com" Async do |task| endpoint = Async::HTTP::Endpoint.parse(URL) Async::WebSocket::Client.connect(endpoint) do |connection| connection.write(Protocol::WebSocket::TextMessage.generate({ "jsonrpc" => "2.0", id: 1, method: "chain_subscribeNewHead", params:...
I can't find a way to close a client program using async-websocket without errors. Here's the error I get when I quit using Ctrl+C : ``` /home/pierre/.local/share/mise/installs/ruby/3.4.1/lib/ruby/gems/3.4.0/gems/async-2.21.1/lib/async/scheduler.rb:386:in 'IO::Event::Selector::EPoll#select': Interrupt from...
Hi. I’m not sure how to describe my issue. A few months ago, I implemented the MVP with async-websocket, and everything worked fine. However, last night, after about six hours...