We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebbd887 commit fb81e83Copy full SHA for fb81e83
test/async/websocket/server.rb
@@ -33,6 +33,16 @@
33
end
34
35
36
+ it "can open client and establish client with block" do
37
+ Async::WebSocket::Client.open(client_endpoint) do |client|
38
+ client.connect(endpoint.authority, "/server") do |connection|
39
+ connection.send_text("Hello World!")
40
+ message = connection.read
41
+ expect(message.to_str).to be == "Hello World!"
42
+ end
43
44
45
+
46
with "headers" do
47
let(:headers) {{"foo" => "bar"}}
48
0 commit comments