Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
void_alex #1
Member since Jan 2014 · 6 posts
Group memberships: Members
Show profile · Link to this post
Subject: RpcIq behavior
I've noticed, that when I send RpcIq stanza in the OnLogin event of the XmppClient I get the "invalid-namespace" error, but if I send it in the OnRosterItem event it works fine. Is it the XMPP specific behavior or Matrix Library? Or it depends on the XMPP server? What is the better place to send RpcIq stanza?
Thanks.
This post was edited on 2014-02-05, 14:06 by void_alex.
Avatar
Alex #2
Member since Feb 2003 · 4322 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
it depends on the XMPP server.
The OnLogin event is too early for most servers. The OnLogin event means only that the authentication succeeded. But there are still other steps required until your XMPP session is ready completely established and ready to use.

I suggest to use the OnRosterEnd event, or wait until you get the first incoming OnPresence event.

Alex
Avatar
void_alex #3
Member since Jan 2014 · 6 posts
Group memberships: Members
Show profile · Link to this post
Thanks a lot!
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: MatriX RSS