async-websocket 0.15.0 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/async/websocket/client.rb +4 -4
- data/lib/async/websocket/connection.rb +1 -0
- data/lib/async/websocket/version.rb +1 -1
- metadata +7 -49
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7fcb6bef4d1c45d2f65e17f4442583eb463ebfd2adf68af5af3925953d754345
|
4
|
+
data.tar.gz: bf3f59fd7d6f3b7ba4a72a27f034257592fe4a03644750bff59c4978ddf0e10e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10c0b9065b7759f022e91aadeb8508af310ddd5bbfa7d3bd2fd0a9379624ea9a70bb0b896bd16553f66ac8bf93416076d40d012832a9c0747f607fd43f993edf
|
7
|
+
data.tar.gz: 6508c0dfcf5aa6b14483204ca337298b790ad3713dd1b50e0e359a5527655797989d33cda9144eb66bb895b9b29f13128cf8ea8361b19b7ff59392c4e84ae3ab
|
@@ -36,7 +36,7 @@ module Async
|
|
36
36
|
|
37
37
|
# @return [Client] a client which can be used to establish websocket connections to the given endpoint.
|
38
38
|
def self.open(endpoint, *args, &block)
|
39
|
-
client = self.new(HTTP::Client.new(endpoint, *args), mask:
|
39
|
+
client = self.new(HTTP::Client.new(endpoint, *args), mask: true)
|
40
40
|
|
41
41
|
return client unless block_given?
|
42
42
|
|
@@ -50,7 +50,7 @@ module Async
|
|
50
50
|
# @return [Connection] an open websocket connection to the given endpoint.
|
51
51
|
def self.connect(endpoint, *args, **options, &block)
|
52
52
|
self.open(endpoint, *args) do |client|
|
53
|
-
connection = client.connect(endpoint.path, **options)
|
53
|
+
connection = client.connect(endpoint.authority, endpoint.path, **options)
|
54
54
|
|
55
55
|
return connection unless block_given?
|
56
56
|
|
@@ -86,9 +86,9 @@ module Async
|
|
86
86
|
end
|
87
87
|
end
|
88
88
|
|
89
|
-
def connect(path, headers: nil, handler: Connection, **options, &block)
|
89
|
+
def connect(authority, path, headers: nil, handler: Connection, **options, &block)
|
90
90
|
headers = ::Protocol::HTTP::Headers[headers]
|
91
|
-
request = Request.new(nil,
|
91
|
+
request = Request.new(nil, authority, path, headers, **options)
|
92
92
|
|
93
93
|
pool = @delegate.pool
|
94
94
|
connection = pool.acquire
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: async-websocket
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async-http
|
@@ -66,34 +66,6 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: bake-bundler
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: bake-modernize
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
97
69
|
- !ruby/object:Gem::Dependency
|
98
70
|
name: bundler
|
99
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -164,22 +136,8 @@ dependencies:
|
|
164
136
|
- - "~>"
|
165
137
|
- !ruby/object:Gem::Version
|
166
138
|
version: '3.6'
|
167
|
-
|
168
|
-
|
169
|
-
requirement: !ruby/object:Gem::Requirement
|
170
|
-
requirements:
|
171
|
-
- - ">="
|
172
|
-
- !ruby/object:Gem::Version
|
173
|
-
version: '0'
|
174
|
-
type: :development
|
175
|
-
prerelease: false
|
176
|
-
version_requirements: !ruby/object:Gem::Requirement
|
177
|
-
requirements:
|
178
|
-
- - ">="
|
179
|
-
- !ruby/object:Gem::Version
|
180
|
-
version: '0'
|
181
|
-
description:
|
182
|
-
email:
|
139
|
+
description:
|
140
|
+
email:
|
183
141
|
executables: []
|
184
142
|
extensions: []
|
185
143
|
extra_rdoc_files: []
|
@@ -202,7 +160,7 @@ homepage: https://github.com/socketry/async-websocket
|
|
202
160
|
licenses:
|
203
161
|
- MIT
|
204
162
|
metadata: {}
|
205
|
-
post_install_message:
|
163
|
+
post_install_message:
|
206
164
|
rdoc_options: []
|
207
165
|
require_paths:
|
208
166
|
- lib
|
@@ -218,7 +176,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
218
176
|
version: '0'
|
219
177
|
requirements: []
|
220
178
|
rubygems_version: 3.1.2
|
221
|
-
signing_key:
|
179
|
+
signing_key:
|
222
180
|
specification_version: 4
|
223
181
|
summary: An async websocket library on top of websocket-driver.
|
224
182
|
test_files: []
|