Work-in-progress on dynamic IQ parsing

This commit is contained in:
Mickael Remond
2018-01-16 22:33:21 +01:00
parent 2e47f1659d
commit d33490cdc0
6 changed files with 144 additions and 39 deletions
+1 -1
View File
@@ -165,7 +165,7 @@ func (s *Session) bind(o Options) {
// TODO Check all elements
switch payload := iq.Payload[0].(type) {
case *bindBind:
case *BindBind:
s.BindJid = payload.Jid // our local id (with possibly randomly generated resource
default:
s.err = errors.New("iq bind result missing")