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 40e8d01 commit df3c408Copy full SHA for df3c408
lib/rack/conform/application.rb
@@ -97,12 +97,13 @@ def test_streaming_enumerator(env)
97
end
98
99
def test_websocket_echo(env)
100
+ puts env.inspect
101
Async::WebSocket::Adapters::Rack.open(env) do |connection|
102
while message = connection.read
103
connection.write(message)
104
105
connection.close
- end or Protocol::HTTP::Response[404, {}, []]
106
+ end or [404, {}, []]
107
108
109
private
test/rack/conform/websocket.rb
@@ -22,5 +22,8 @@
22
ensure
23
24
25
+ rescue Async::WebSocket::ProtocolError => error
26
+ # It's acceptable to not support WebSockets.
27
+ raise unless error.message == "Failed to negotiate connection: 404"
28
29
0 commit comments