Software / code / verse
Comparison
client.lua @ 83:8221f3c25fd4
verse.client: Add stream_id property
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Tue, 03 Aug 2010 09:17:03 +0100 |
| parent | 81:0924a3d05e40 |
| child | 97:ad6006779416 |
comparison
equal
deleted
inserted
replaced
| 82:f306c2f8bb88 | 83:8221f3c25fd4 |
|---|---|
| 17 stream_ns = xmlns_stream, | 17 stream_ns = xmlns_stream, |
| 18 stream_tag = "stream", | 18 stream_tag = "stream", |
| 19 default_ns = "jabber:client" }; | 19 default_ns = "jabber:client" }; |
| 20 | 20 |
| 21 function stream_callbacks.streamopened(stream, attr) | 21 function stream_callbacks.streamopened(stream, attr) |
| 22 if not stream:event("opened") then | 22 stream.stream_id = attr.id; |
| 23 if not stream:event("opened", attr) then | |
| 23 stream.notopen = nil; | 24 stream.notopen = nil; |
| 24 end | 25 end |
| 25 return true; | 26 return true; |
| 26 end | 27 end |
| 27 | 28 |