Not logged in. · Lost password · Register
Forum: MatriX and XmppDotNet RSS
Avatar
clapou34 #1
Member since Mar 2013 · 4 posts
Group memberships: Members
Show profile · Link to this post
Subject: Websockets
Hi Alex,

First : happy new year ! hope your business is going well, as we plan to count on you for the future ;)

I would like to know if the Matrix SDK does support the RFC 7395 (websockets extension)?
We wouldn't like to use MatriX JS as we are targeting heavy client with websockets (outside of browser)

Best regards,

Christophe
Avatar
Alex #2
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
yes, we have a MatriX branch with Websockets. We just have not released it officially yet.
On which platform and .NET version are you?

Alex
Avatar
clapou34 #3
Member since Mar 2013 · 4 posts
Group memberships: Members
Show profile · Link to this post
Thanks for your fast response :)

We would like to target windows 7 and above. Client environment is not under our control. I would say that .NET 3.5 & .NET 4 could be the response. We could manage to have multiple versions

For the server side, Openfire with websockets plug-in is what we plan to do. We still need to POC all this.
Did you get some feedback about bad experience for websockets with Openfire server ? This information could be useful to us before we start.

Christophe
Avatar
Alex #4
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Our implementation is based on System.Net.WebSockets, which is only available since .NET 4.5. So 4.5 would be the minimum requirement.

Websockets is an official standard, so I see no reason why it should not work with Openfire. However we have done most of our testing with Prosody and ejabberd, because in Openfire Websockets were not available at the time we started to work on this task.

When you use the pre-release builds 2.1.0-beta1 you can use websockets.

sample:
  1. xmppClient.Transport = Matrix.Net.Transport.WebSocket;
  2. xmppClient.Uri = new Uri("ws://localhost:5280/xmpp-websocket");
Avatar
Alex #5
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Have just tested it successful with the Openfire websocket plugin
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: