~samwhited/xmpp

3012c0445747a046f36af1e1a554724822e95efb — Sam Whited 4 years ago fa3edba
Clarify session state docs
2 files changed, 5 insertions(+), 3 deletions(-)

M conn.go
M stream.go
M conn.go => conn.go +2 -1
@@ 130,7 130,8 @@ func (c *Conn) Close() error {
	return c.rwc.Close()
}

// State returns the current state of the session.
// State returns the current state of the session. For more information, see the
// SessionState type.
func (c *Conn) State() SessionState {
	return c.state
}

M stream.go => stream.go +3 -2
@@ 23,8 23,9 @@ const (

const streamIDLength = 16

// SessionState represents the current state of an XMPP session. For a
// description of each bit, see the various SessionState typed constants.
// SessionState is a bitmask that represents the current state of an XMPP
// session. For a description of each bit, see the various SessionState typed
// constants.
type SessionState uint8

const (