Not logged in. · Lost password · Register
Forum: MatriX and XmppDotNet RSS
Avatar
jlew #1
Member since Jun 2011 · 8 posts
Group memberships: Members
Show profile · Link to this post
Subject: BOSH Session Attachment
Does MatriX for .NET allow for BOSH session attachment?  I want to establish the session server-side (ASP.NET) and hand off the RID/JID/SID to the browser.  Any examples available?

Thanks,
Jeremy
Avatar
Alex #2
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
no this is not supported. Nobody did request such a feature yet. Can you elaborate on what you are exactly looking for?
Do you want to start the session with MatriX or attach to MatriX?

Alex
Avatar
jlew #3
Member since Jun 2011 · 8 posts
Group memberships: Members
Show profile · Link to this post
I want to start a BOSH session from the web server using MatriX as the "client".  After binding, I would need to be able to discover the SID,RID, and JID in order to hand the session off to my browser-based (Strophe.js) client, as detailed here:

http://metajack.im/2009/12/14/fastest-xmpp-sessions-with-h…

It looks quite simple to support if I could get at all the IDs, but they don't seem to be exposed through the current API (the RID in particular).

Jeremy
Avatar
Alex #4
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post

I don't think this is documented in any official XMPP extensions.

Quote by jlew:
It looks quite simple to support if I could get at all the IDs, but they don't seem to be exposed through the current API (the RID in particular).

Getting the Jid, Rid and Sid is pretty easy, they are in MatriX and need only public getters. Harder would be the Api changes, because MatriX always established the complete session and can't stop after bind at the moment.

Alex
Avatar
jlew #5
Member since Jun 2011 · 8 posts
Group memberships: Members
Show profile · Link to this post
It's probably not documented as an extension, but it seems that the BOSH spec itself supports this kind of arrangement implicitly, and there's no particular extra logic needed by the BOSH connection manager.
Avatar
Alex #6
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
thats correct. The problem is that we had no requests for this yet and this is a feature which would need some API changes and couldn't be implemented that fast.

The other question is if it wouldn't be a bit overkill to use a full featured XMPP library when you want need only about 3 HTTP round-trips to hand over the session to strophe. I think a small custom solution would make more sense here.

Feel free to contact me by email, I'm sure that we can find a solution for you.

Alex
This post was edited on 2011-06-08, 16:50 by Alex.
Avatar
jlew #7
Member since Jun 2011 · 8 posts
Group memberships: Members
Show profile · Link to this post
Happy to email you, but the "email Alex" link says I am not authroized.  I have already implemented my own "bare-metal" implementatoin of this that seems to work fine, but I'd like to run it by you.  We are using MatriX for other types of server-side interactions as well.

Thanks,
Jeremy
Avatar
Alex #8
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
hm thats strange. Every user with at least 1 post should be able to send me messages. I made their some changes recently to prevent PM SPAM.

Use the contact form here: http://www.ag-software.net/contact/
or the support email address provided with your license.

Alex
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: