doc/session.txt

changeset 55
4edb942e9dff
child 61
7afc23a8114e
equal deleted inserted replaced
51:5253c891a360 55:4edb942e9dff
1
2 Structure of a session:
3
4
5 session {
6 -- properties --
7 conn -- the tcp connection
8 notopen -- true if stream has not been initiated, removed after receiving <stream:steam>
9 priority -- the resource priority, default: 0
10 type -- the connection type. Valid values include:
11 -- "c2s_unauthed" - connection has not been authenticated yet
12 -- "c2s" - from a local client to the server
13 username -- the node part of the client's jid (not defined before auth)
14 host -- the host part of the client's jid (not defined before stream initiation)
15 resource -- the resource part of the client's full jid (not defined before resource binding)
16
17 -- methods --
18 send(x) -- converts x to a string, and writes it to the connection
19 }

mercurial