tp-blather 0.8.3 → 0.8.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/blather/stream/component.rb +10 -10
- data/lib/blather/version.rb +1 -1
- metadata +1 -1
@@ -6,17 +6,17 @@ class Stream
|
|
6
6
|
NAMESPACE = 'jabber:component:accept'
|
7
7
|
|
8
8
|
def receive(node) # :nodoc:
|
9
|
-
if node.element_name == 'handshake'
|
10
|
-
|
11
|
-
else
|
9
|
+
#if node.element_name == 'handshake'
|
10
|
+
# ready!
|
11
|
+
#else
|
12
12
|
super
|
13
|
-
end
|
14
|
-
|
15
|
-
if @state != :started
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
end
|
13
|
+
#end
|
14
|
+
#
|
15
|
+
#if @state != :started
|
16
|
+
# if node.document.find_first('/stream:stream[not(stream:error)]', :xmlns => NAMESPACE, :stream => STREAM_NS)
|
17
|
+
# send("<handshake>#{Digest::SHA1.hexdigest(@node['id']+@password)}</handshake>")
|
18
|
+
# end
|
19
|
+
#end
|
20
20
|
end
|
21
21
|
|
22
22
|
def send(stanza)
|
data/lib/blather/version.rb
CHANGED