websocket-client-simple 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.txt +5 -0
- data/lib/websocket-client-simple/client.rb +6 -1
- data/lib/websocket-client-simple/version.rb +1 -1
- data/lib/websocket-client-simple.rb +1 -0
- 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: 55688e16522e47832ad30b817519536685ff275e
|
4
|
+
data.tar.gz: 7b7e37ba6c26e4b855072ce7983d30855b835a8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef90ae275aaf760c9ec85049ff07ec636cd0cf219cc037f0d945adc7ebb3b9621df04263e229e7b70ced6617e9fab037d259ae34035e74b210ae2b0498e2234d
|
7
|
+
data.tar.gz: f68f2fd5dd689582f06f758569f71a9f09a69e23655aeb86d974a68cc77bf79d6e9bea83e7d996c994d26c59536220d5562efee6d63c46589a0e042f3992d7cf
|
data/History.txt
CHANGED
@@ -13,7 +13,12 @@ module WebSocket
|
|
13
13
|
def initialize(url)
|
14
14
|
@url = url
|
15
15
|
uri = URI.parse url
|
16
|
-
@socket = TCPSocket.new(uri.host,
|
16
|
+
@socket = TCPSocket.new(uri.host,
|
17
|
+
uri.port || (uri.scheme == 'wss' ? 443 : 80))
|
18
|
+
if ['https', 'wss'].include? uri.scheme
|
19
|
+
@socket = ::OpenSSL::SSL::SSLSocket.new(@socket)
|
20
|
+
@socket.connect
|
21
|
+
end
|
17
22
|
@handshake = ::WebSocket::Handshake::Client.new :url => url
|
18
23
|
@handshaked = false
|
19
24
|
frame = ::WebSocket::Frame::Incoming::Client.new
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: websocket-client-simple
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sho Hashimoto
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|