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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fd2fc6088397e593b00bbee38113f2778502cd63
4
- data.tar.gz: 9aa868c516d06787d697eaf73e5bae2da859926a
3
+ metadata.gz: 623fede1a088f4f9ebdea245aa16ce11fc3a82e8
4
+ data.tar.gz: 45a531ee91368609cda816b4316569ee54a69dbb
5
5
  SHA512:
6
- metadata.gz: 50eb7efd6162a6b0422a269c6c146e426b4414182000fc88fd4c698191aba0ffc0d3c749b537716d6938f76f2c9881539bd8cc5953161ffc7099646e359f2f31
7
- data.tar.gz: 83f023b52c171e79436529a19c6a948bbe17649117c594328f04a7d235ccf2b67246c65dfc6038da6798242ff02b47234609286fb387f0d4237148a9b22b9ffe
6
+ metadata.gz: 6983cc6b405ef101c3ede5e27ea194982b4722f73ef6b0b15ad4bae796598026968366ee4abf4ad102441b622f18bc4a25bbd181d9a307144e9449ff695d11ac
7
+ data.tar.gz: 8b6471536121d3c270187cb4e8f541e059e2382da4dd54582c92943b42e9fe4e890485966d41ce9f8b1dac92b3a9d3578efc83c3fb7eaf4966bb409b21fb044b
@@ -160,7 +160,13 @@ module WsClient
160
160
  end
161
161
 
162
162
  if msg = frame.next
163
- message_queue << msg
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)
@@ -1,3 +1,3 @@
1
1
  module WsClient
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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-11 00:00:00.000000000 Z
12
+ date: 2016-08-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler