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

View File

@@ -172,7 +172,7 @@ func bind(t *testing.T, c net.Conn, decoder *xml.Decoder) {
// TODO Check all elements
switch iq.Payload[0].(type) {
case *bindBind:
case *BindBind:
result := `<iq id='%s' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>%s</jid>