100 self:reopen(); |
100 self:reopen(); |
101 end |
101 end |
102 |
102 |
103 function stream:reopen() |
103 function stream:reopen() |
104 reset_stream(self); |
104 reset_stream(self); |
105 self:send(st.stanza("stream:stream", { to = self.host, ["xmlns:stream"]='http://etherx.jabber.org/streams', xmlns = "jabber:client" }):top_tag()); |
105 self:send(st.stanza("stream:stream", { to = self.host, ["xmlns:stream"]='http://etherx.jabber.org/streams', |
|
106 xmlns = "jabber:client", version = "1.0" }):top_tag()); |
106 end |
107 end |
107 |
108 |
108 function stream:close(reason) |
109 function stream:close(reason) |
109 if not self.notopen then |
110 if not self.notopen then |
110 self:send("</stream:stream>"); |
111 self:send("</stream:stream>"); |