Some additions to XMPPConnection.as?

Hi.

In XMPPConnection.as i found codes like this:

if( resultIQ.type == IQ.RESULT_TYPE ) {

}

else {

// We weren’t expecting this

dispatchError( “unexpected-request”, “Unexpected Request”, “wait”, 400 );

}

but server send answer about error. I propose to do like this:

if( resultIQ.type == IQ.RESULT_TYPE ) {

}

else if ( resultIQ.type == IQ.ERROR_TYPE ){

dispatchError( resultIQ.errorCondition, resultIQ.errorMessage, resultIQ.errorType, resultIQ.errorCode );

}

else {

// We weren’t expecting this

dispatchError( “unexpected-request”, “Unexpected Request”, “wait”, 400 );

}

I would be glad if this add to svn.

I noticed this problem too, and posted this message in early January:

I would also very glad if this got into XIFF! Please, XIFF team?

I agree.

It is much easier to debug when I get more specific data.