ws_client 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ws_client.rb +7 -1
- data/lib/ws_client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 623fede1a088f4f9ebdea245aa16ce11fc3a82e8
|
4
|
+
data.tar.gz: 45a531ee91368609cda816b4316569ee54a69dbb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6983cc6b405ef101c3ede5e27ea194982b4722f73ef6b0b15ad4bae796598026968366ee4abf4ad102441b622f18bc4a25bbd181d9a307144e9449ff695d11ac
|
7
|
+
data.tar.gz: 8b6471536121d3c270187cb4e8f541e059e2382da4dd54582c92943b42e9fe4e890485966d41ce9f8b1dac92b3a9d3578efc83c3fb7eaf4966bb409b21fb044b
|
data/lib/ws_client.rb
CHANGED
@@ -160,7 +160,13 @@ module WsClient
|
|
160
160
|
end
|
161
161
|
|
162
162
|
if msg = frame.next
|
163
|
-
|
163
|
+
case msg.type
|
164
|
+
when :ping
|
165
|
+
send_data_and_wait(msg.data, 10, :type => :pong)
|
166
|
+
else
|
167
|
+
message_queue << msg
|
168
|
+
end
|
169
|
+
|
164
170
|
pull_next_message_off_of_socket(socket, MS_2) # 2ms penalty for new frames
|
165
171
|
else
|
166
172
|
pull_next_message_off_of_socket(socket, timeout, frame)
|
data/lib/ws_client/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ws_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Dewitt
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-08-
|
12
|
+
date: 2016-08-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|