Testing the AllJoyn API for web apps.

asked 2014-11-12 06:43:52 -0700

Claes Nilsson gravatar image

I am interested in trying the AllJoyn API for web apps and I have seen the presentation https://wiki.allseenalliance.org/_media/training/programming_alljoyn.js.pdf on the JavaScript interface. Which is the easiest way to test this? I am running a Windows 7 machine. Is there an installable plugin for Chrome or Firefox for AllJoyn?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2014-11-12 12:33:10 -0700

bspencer gravatar image

There is some confusion here. The alljoyn-js project is not intended for web browsers. It is a stand alone javascript runtime that uses the open source Duktape JavaScript Ecmascript E5 engine in combination with the injection of an AllJoyn Object into the JavaScript engine and an IO layer to make the library really useful on an MCU (embedded micro controller).

There is a Javascript plugin design that is legacy in the project and I believe was just picked up by a member of the AllSeen Alliance. You can reach out to the AllSeen mailing lists to ask if this is still supported.

If you would like to play around with the alljoyn-js project you can follow the instructions on the AllSeen Wiki page for more details.

edit flag offensive delete publish link more

answered 2014-11-13 01:26:41 -0700

Claes Nilsson gravatar image

updated 2014-11-13 01:32:47 -0700

Thanks for your reply. I see now that there are two AllJoyn projects related to JavaScript:

I tried the latter but failed to install the AllJoyn NPM module (probably because I am running Windows, which does not yet seem to be supported)

Has it been any thoughts of exposing AllJoyn to web apps through through a Web Socket interface? For example, having a Web Socket server in the Android AllJoyn application that interfaces the AllJoyn implementation? I understand the security implications but that may be solvable.

edit flag offensive delete publish link more


There is a NPAPI plugin architecture that is legacy that I was referring to in my first answer. It is legacy now and not maintained which is why I mentioned to ask the AllSeen Core mailing lists to see if anyone is working on this project or would take it up: https://git.allseenalliance.org/cgit/core/alljoyn.git/tree/alljoyn_js .

bspencer ( 2014-11-13 10:57:38 -0700 )edit

By scanning the mails I just found information on the Allseen-node.js project. Also note that Chrome phases out support for NPAPI.

Claes Nilsson ( 2014-11-14 02:04:42 -0700 )edit

Yes, the NPAPI is legacy and it is known that browser support is being removed for this. There is a Node implementation in works from Octoblu, but this is not javascript that you would write in a HTML page, it would be used in a server or stand alone instance on a device like a RPi, etc.

bspencer ( 2014-11-21 15:08:33 -0700 )edit

Hi, Is it possible to develop a browser plugin (firefox,chrome,etc) using alljoyn.? So that, browser can be the replacement for smartphones. I want to know the possible cases for such development.?

kganesh4me ( 2015-02-10 22:36:16 -0700 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2014-11-12 06:43:52 -0700

Seen: 493 times

Last updated: Nov 13 '14