async-websocket 0.27.0 → 0.28.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/async/websocket/client.rb +1 -3
- data/lib/async/websocket/connect_request.rb +4 -0
- data/lib/async/websocket/error.rb +11 -0
- data/lib/async/websocket/upgrade_request.rb +4 -0
- data/lib/async/websocket/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +16 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 888f2fa13744599f5f16f22feba6826ad1b8e44dc59520480daee4663cc89341
|
4
|
+
data.tar.gz: f81c1f4d77d0593d6bfb59a5bd8c307ddaa218e5b22999f2f08ae5d5801e9dd4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b71ab0e424b91f2e6500cc1277ac1edc7491f32144df6efc49847fbcdd200a9586b7be08d28341592862858cd4be6e7b1f5d31f983c6492b6667f4d543ec62c
|
7
|
+
data.tar.gz: fb32ff7cc27011471594bf111dbbad00d4e458dc58664e916d426aea48fa808a33eb8e02304a31640d8179e0a21a09264b0811cacd8ac9c54e901b8055dec3c9
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -110,9 +110,7 @@ module Async
|
|
110
110
|
response = request.call(connection)
|
111
111
|
|
112
112
|
unless response.stream?
|
113
|
-
response.
|
114
|
-
|
115
|
-
raise ProtocolError, "Failed to negotiate connection: #{response.status}"
|
113
|
+
raise ConnectionError.new("Failed to negotiate connection!", response.unwrap)
|
116
114
|
end
|
117
115
|
|
118
116
|
protocol = response.headers[SEC_WEBSOCKET_PROTOCOL]&.first
|
@@ -15,5 +15,16 @@ module Async
|
|
15
15
|
|
16
16
|
class UnsupportedVersionError < Error
|
17
17
|
end
|
18
|
+
|
19
|
+
class ConnectionError < Error
|
20
|
+
def initialize(message, response)
|
21
|
+
super(message)
|
22
|
+
|
23
|
+
@response = response
|
24
|
+
end
|
25
|
+
|
26
|
+
# The failed HTTP response.
|
27
|
+
attr :response
|
28
|
+
end
|
18
29
|
end
|
19
30
|
end
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: async-websocket
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.28.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
@@ -49,7 +49,7 @@ cert_chain:
|
|
49
49
|
Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
|
50
50
|
voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
|
51
51
|
-----END CERTIFICATE-----
|
52
|
-
date: 2024-07-
|
52
|
+
date: 2024-07-19 00:00:00.000000000 Z
|
53
53
|
dependencies:
|
54
54
|
- !ruby/object:Gem::Dependency
|
55
55
|
name: async-http
|
@@ -65,6 +65,20 @@ dependencies:
|
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
67
|
version: '0.54'
|
68
|
+
- !ruby/object:Gem::Dependency
|
69
|
+
name: protocol-http
|
70
|
+
requirement: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: 0.28.1
|
75
|
+
type: :runtime
|
76
|
+
prerelease: false
|
77
|
+
version_requirements: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - ">="
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: 0.28.1
|
68
82
|
- !ruby/object:Gem::Dependency
|
69
83
|
name: protocol-rack
|
70
84
|
requirement: !ruby/object:Gem::Requirement
|
metadata.gz.sig
CHANGED
Binary file
|