protocol-websocket 0.7.3 → 0.7.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/protocol/websocket/connection.rb +4 -1
- data/lib/protocol/websocket/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 519265fe5ebe9530d3ddec6e9bc3836dd0a2af827e377ef4ac7f390f5791f2a9
|
4
|
+
data.tar.gz: 32a7ab9ab4e4b065ee6b0f738396ea575b49da9c8ac927ee38da8afa1ab595fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f5e59c42893bf46ba3581f4a44952c919b56d94db139b558fd6fafa3d4c360d52d58741da99fb456afe72fb8679c27a4f22eaf551b014b4e774dd5cb31f39ff
|
7
|
+
data.tar.gz: '08611be52a6cbbfb10ec656bf820bc3241afb626de9aa9fb2ce19f9efa21e3d5f38bfe6f5f1b86f7ec184355bd236505469705559d7e234c4d3a8f04d5b536fa'
|
@@ -177,10 +177,13 @@ module Protocol
|
|
177
177
|
|
178
178
|
# @param buffer [String] a unicode or binary string.
|
179
179
|
def write(buffer)
|
180
|
+
# https://tools.ietf.org/html/rfc6455#section-5.6
|
181
|
+
|
182
|
+
# Text: The "Payload data" is text data encoded as UTF-8
|
180
183
|
if buffer.encoding == Encoding::UTF_8
|
181
184
|
send_text(buffer)
|
182
185
|
else
|
183
|
-
|
186
|
+
send_binary(buffer)
|
184
187
|
end
|
185
188
|
end
|
186
189
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: protocol-websocket
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: protocol-http
|
@@ -140,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
140
140
|
- !ruby/object:Gem::Version
|
141
141
|
version: '0'
|
142
142
|
requirements: []
|
143
|
-
rubygems_version: 3.0.
|
143
|
+
rubygems_version: 3.0.6
|
144
144
|
signing_key:
|
145
145
|
specification_version: 4
|
146
146
|
summary: A low level implementation of the WebSocket protocol.
|