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 +4 -4
- data/lib/ws_client.rb +2 -3
- data/lib/ws_client/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e3d5ce819fc7a4df3bc7b97af49b0884856b858
|
4
|
+
data.tar.gz: f99cf3a5e40be8f9c700216a0130658f09b66b35
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
194
|
+
write_data nil, :type => :close if !@pipe_broken
|
196
195
|
emit :close
|
197
196
|
ensure
|
198
197
|
@closed = true
|
data/lib/ws_client/version.rb
CHANGED