On Wed Jul 11 2007, Rafi Rainshtein wrote:
> Hi,
>
> I meant kick out on the TCP level. Obviously it is handled by
> onDisconnect() but the question is whether it is possible to detect
> being kicked out rather than a network error for example. Does the
> server/XMPP have any specs about it?
The server should send a <stream:error> before closing the connection. The
connection error is ConnStreamError in this case and you can check for the
actual reason with ClientBase::streamError().
cheers,
Jakob
Attachment:
pgpqBx3IJ2fGs.pgp
Description: PGP signature