ws_client 0.1.3 → 0.1.4

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: ef6e9bbe3063b1e50ff6813a61f6248f9105942d
4
- data.tar.gz: 48ac7c88fef1239965772efcf2e39db4de0687a7
3
+ metadata.gz: 1e3d5ce819fc7a4df3bc7b97af49b0884856b858
4
+ data.tar.gz: f99cf3a5e40be8f9c700216a0130658f09b66b35
5
5
  SHA512:
6
- metadata.gz: 59341231d056722c66edce1db4df2da6e51c98f3deadc719ab8198503a93657cb9e0ecb780c2a0ece9a944c7fdcb041119aec1bdb38a73c79711fb637adcdbc1
7
- data.tar.gz: 460d313ab386c8ce6162e854225ae25de62ec1f4a34bd23c4e26c969cb98b392db6ac33305592dc403dd6624ff85f88b2c4fb129bdc042da73132017d39f658d
6
+ metadata.gz: 7c161839d9cfb1d6f85f2d3c862e46f08ba5e4ae9b167446ad705f7c56d09fbee571893a9e5ecde6c5d89549a62a46e1cc6db10d0c49f7547da552476b32a19f
7
+ data.tar.gz: 4d62a8043949076f6b3b109ef8477fb691ac9d88524f21c2f5fb0a02e2c772926102147e420ffc634cdf1d51d24b817f4e167dd89193d298f35e93f5b20f65cb
data/lib/ws_client.rb CHANGED
@@ -67,7 +67,6 @@ module WsClient
67
67
  response_data = []
68
68
  write_data(data, opt)
69
69
  pull_next_message_off_of_socket(@socket, timeout)
70
- pull_next_message_off_of_socket(@socket, MS_2) # 2ms penalty to check for additional messages
71
70
 
72
71
  if message_queue.length > 0
73
72
  message_queue.length.times do
@@ -82,7 +81,7 @@ module WsClient
82
81
  def close
83
82
  return if @closed
84
83
 
85
- send_data nil, MS_2, :type => :close if !@pipe_broken
84
+ write_data nil, :type => :close if !@pipe_broken
86
85
  emit :close
87
86
  ensure
88
87
  @closed = true
@@ -192,7 +191,7 @@ module WsClient
192
191
  def close
193
192
  return if @closed
194
193
 
195
- send_data nil, :type => :close if !@pipe_broken
194
+ write_data nil, :type => :close if !@pipe_broken
196
195
  emit :close
197
196
  ensure
198
197
  @closed = true
@@ -1,3 +1,3 @@
1
1
  module WsClient
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
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.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Dewitt