Questions about wamp1 versus wamp2

#1

Hi there.

Currently I have an entire project done in wamp1. It consists of an android client, iPhone client (MDWamp library), a python Autobahn server, and autobahnjs in the web page. I used insecure websockets.

As a close to final step for my project I installed the SSL certificate and activated SSL to my web server. My intention was to transfer sensitive bits of data with https. Now do I have problems. I found out that due to browser security I cannot mix http/ws with https/wss. This means that I must make my website wss/https throughout.

So I have some questions:

  1. Does WAMP v1 support wss connections from autobahnJS to autobahn wamp v1 server? Asking because I don’t see any examples with wss in WAMPv1 demos.

  2. If I convert my server to WAMPv2, can I expect that it will still support the WAMPv1 Android client?

  3. Can anyone direct me to examples which show how to do client permissions for RPC calls? I didn’t have a problem finding it with WAMPv1 but I can’t find it with the new examples.

Thank you very much.

0 Likes

#2

Hi there.

Currently I have an entire project done in wamp1. It consists of an
android client, iPhone client (MDWamp library), a python Autobahn
server, and autobahnjs in the web page. I used insecure websockets.

As a close to final step for my project I installed the SSL certificate
and activated SSL to my web server. My intention was to transfer
sensitive bits of data with https. Now do I have problems. I found out
that due to browser security I cannot mix http/ws with https/wss. This

What you can't do is opening a non-secure WebSocket connection from a HTML page delivered over HTTPS. You can use WSS on HTTP delivered HTML with no problems.

The only caveat: if the WSS comes from a different host(name) than the HTTPS, the certificate for the WSS must be _really_ valid (since a browser won't render any dialogs to ask the user to accept etc).

means that I must make my website wss/https throughout.

So I have some questions:
1) Does WAMP v1 support wss connections from autobahnJS to autobahn wamp
v1 server? Asking because I don't see any examples with wss in WAMPv1
demos.

Yes, AutobahnPython/JS both support WSS (also for WAMP v1). AutobahnAndroid not. It's a long standing issue that I still hadn't time to finalize.

2) If I convert my server to WAMPv2, can I expect that it will still
support the WAMPv1 Android client?

No. WAMP v1 clients cannot talk to WAMP v2 servers. We will update AutobahnAndroid to WAMP v2 of course, but it will loose WAMP v1 support on the way. We won't support both versions looking forward.

It seems, MDWamp also have plans to go WAMP v2:

https://github.com/mogui/MDWamp/issues/13

3) Can anyone direct me to examples which show how to do client
permissions for RPC calls? I didn't have a problem finding it with
WAMPv1 but I can't find it with the new examples.

There aren't any yet;(

Cheers,
/Tobias

···

Am 31.05.2014 01:33, schrieb Gene Horodecki:

Thank you very much.

--
You received this message because you are subscribed to the Google
Groups "Autobahn" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to autobahnws+...@googlegroups.com
<mailto:autobahnws+...@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout.

0 Likes

#3

Ok thank you… I think I should be able to navigate through this with your answers.

···

On Friday, 30 May 2014 18:33:10 UTC-5, Malibu wrote:

Hi there.

Currently I have an entire project done in wamp1. It consists of an android client, iPhone client (MDWamp library), a python Autobahn server, and autobahnjs in the web page. I used insecure websockets.

As a close to final step for my project I installed the SSL certificate and activated SSL to my web server. My intention was to transfer sensitive bits of data with https. Now do I have problems. I found out that due to browser security I cannot mix http/ws with https/wss. This means that I must make my website wss/https throughout.

So I have some questions:

  1. Does WAMP v1 support wss connections from autobahnJS to autobahn wamp v1 server? Asking because I don’t see any examples with wss in WAMPv1 demos.

  2. If I convert my server to WAMPv2, can I expect that it will still support the WAMPv1 Android client?

  3. Can anyone direct me to examples which show how to do client permissions for RPC calls? I didn’t have a problem finding it with WAMPv1 but I can’t find it with the new examples.

Thank you very much.

0 Likes