Autobahn- WAMPV2 support for Android

69 views
Skip to first unread message

ssaxe...@gmail.com

unread,
Sep 1, 2017, 5:46:48 AM9/1/17
to Autobahn
Hi there,

I need to integrate Autobahn- WAMPV2 in my Android app but I found that it is still in development. When it is likely to be ready for integration in the app?

Omer Akram

unread,
Sep 3, 2017, 5:54:01 PM9/3/17
to Autobahn
Hi!

We have started looking into this and I hope to something soon. I can't give an exact date, though you can track this issue https://github.com/crossbario/autobahn-java/issues/146 for updates.

Thanks!

ssaxe...@gmail.com

unread,
Sep 15, 2017, 11:30:47 AM9/15/17
to Autobahn
Hi Omer, I noticed that you have merged https://github.com/crossbario/autobahn-java/issues/146 to master recently. Is it now ready for WAMP_V2 integration in Android?

I was trying to connect the client using the code example given there but the demonstrateSubscribe and demonstratePublish callback were never invoked. I am using following code to establish the connection-

Session session = new Session();
// Add all onJoin listeners
session.addOnJoinListener(this::demonstrateSubscribe);
session.addOnJoinListener(this::demonstratePublish);

// Now create a transport list to try and add transports to it.
// In our case, we currnetly only have Netty based WAMP-over-WebSocket.
List<ITransport> transports = new ArrayList<>();
transports.add(new NettyTransport("wss://xxxxxx/wss2/"));

// Now provide a list of authentication methods.
// We only support anonymous auth currently.
List<IAuthenticator> authenticators = new ArrayList<>();
authenticators.add(new AnonymousAuth());

// finally, provide everything to a Client instance and connect
Client client = new Client(transports);
client.add(session, "streamName", authenticators);
client.connect();

Please let me know if I am missing something.

Omer Akram

unread,
Sep 15, 2017, 11:36:52 AM9/15/17
to Autobahn
Yes, android support did land, though we haven't yet done an official release.


do note that on Android you should be using AndroidWebSocket as transport instead of NettyTransport.

ssaxe...@gmail.com

unread,
Sep 15, 2017, 12:27:57 PM9/15/17
to Autobahn
Thanks for the quick response Omer. I will try your suggestions.

One more question, as the WAMP layer is using Java 8 features for WAMP actions and in Android java 8 is supported on API 24 (Nougat) and above. It is only around 10% of the current market share. So are guys planning to make it compatible with older Android versions?


On Friday, September 1, 2017 at 3:16:48 PM UTC+5:30, ssaxe...@gmail.com wrote:

Omer Akram

unread,
Sep 15, 2017, 1:08:40 PM9/15/17
to Autobahn
Re: older Androids, we do plan to provide some kind of support using streamsupport library but thats going to be a while.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to autob...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/autobahnws/09da04d9-0f33-4d75-8fe3-891edfd5a329%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

ssaxe...@gmail.com

unread,
Sep 20, 2017, 3:04:57 AM9/20/17
to Autobahn
Omer I am unable to find the 'AndroidWebSocket' class in the jar file created using make and docker as explained by you here: https://groups.google.com/forum/#!topic/autobahnws/zWHqe-P93KQ. Please assist me.

On Friday, September 1, 2017 at 3:16:48 PM UTC+5:30, ssaxe...@gmail.com wrote:

Omer Akram

unread,
Oct 9, 2017, 11:53:41 AM10/9/17
to Autobahn

You don't need to use the jar file directly. Just add below line to your build.gradle 

compile 'io.crossbar.autobahn:autobahn-android:17.10.4'


Reply all
Reply to author
Forward
0 new messages