-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to use raw Blather::Stream #153
Comments
Please provide the code you used. |
Additionally, try using |
I cant use it, since it tries to register when I don't need it. Also I need to send some specific stanzas before actual login. |
Actually, it doesn't. You're thinking of |
actually it is.
And I got:
same use-case with |
You are indeed correct - we do not have a Stream which does not respond to features before establishing a session. Is it indeed permitted to send stanzas before session establishment? Could you tell us more about your use-case?
What does xmpp4r do? Do you have wire logs to demonstrate what it is you expect? Maybe a code sample so we can see how you do it? |
This is mobile messenger like WhatsUp, of Viber.
btw, my debug log is not about sending custom stanzas, but for next step - actually login with recieved password. |
Unfortunately you didn't fully answer my questions. The best I can do is say you'll need to understand how Stream's statemachine works and hook into that. |
Sorry, I missed last part regarding with it I can split connection and auth phases like so:
And here is log for
|
Blather::Stream can be used to build your own handler system if Blather's
doesn't suit your needs.
https://github.com/adhearsion/blather/blob/develop/lib/blather/stream.rb#L5
example in code is not work. even if it started in EM block I got:
I came to raw Stream, because I need to init new session in custom way, sending some custom stanza's
The text was updated successfully, but these errors were encountered: