-
Notifications
You must be signed in to change notification settings - Fork 366
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
skip a Session Establishment request #173
Comments
Best thing you can do to move this forward is to make a pull request. |
Looks like the right way is to support 'optional' element so if server returns 'optional' then the strophejs lib should skip this request. |
I can confirm that skipping this step works fine on ejabber since at least ejabberd 16.09. I have this code in place:
Where the avoidAuthSession is something I set to true when I know I'm going to be pointing at a new ejabberd. It is probably worth implementing the suggestion by @soulfly and properly checking if this step is optional so everyone can benefit from the skipped step. It leads to a noticeable improvement in connection setup time for clients a long way from the server where an extra round trip can be significant. This is especially handy on websockets where session attachment can't easily be done (previously when using BOSH I avoided the auth round trip costs by pre-authenticating on the server side and then allowing the client to do a much faster session attachment afterwards). |
Looks like session establishment is still required by |
I found one thing which we can actually omit:
and this is also mentioned here https://tools.ietf.org/html/rfc6121#page-112
Can we skip this step with Strophejs?
The text was updated successfully, but these errors were encountered: