lib/async/http/endpoint.rb in async-http-0.80.0 vs lib/async/http/endpoint.rb in async-http-0.80.1
- old
+ new
@@ -12,9 +12,14 @@
require "io/endpoint/ssl_endpoint"
require_relative "protocol/http"
require_relative "protocol/https"
+require "uri"
+
+# Compatibility with Ruby 3.1.2
+require "uri/wss"
+
module Async
module HTTP
# Represents a way to connect to a remote HTTP server.
class Endpoint < ::IO::Endpoint::Generic
SCHEMES = {