Node.js support

#1

Hello everyone and thank you for making this project available to the public.

A few months ago I have used Autobahn for one of my android projects, I used it to have a realtime notifications system, and used it to trigger some events on a raspberry-pi device, I used the standard Node.js web-socket library as a server, I would like to contribute my work to this project and help in it’s Node.js support.

Regards,

0 Likes

#2

probably best if you work up a github project of your own with concepts.

···

On Mon, Dec 23, 2013 at 4:06 PM, Firas Al Kafri firas....@gmail.com wrote:

Hello everyone and thank you for making this project available to the public.

A few months ago I have used Autobahn for one of my android projects, I used it to have a realtime notifications system, and used it to trigger some events on a raspberry-pi device, I used the standard Node.js web-socket library as a server, I would like to contribute my work to this project and help in it’s Node.js support.

Regards,

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.

For more options, visit https://groups.google.com/groups/opt_out.

0 Likes

#3

Why?

···

On Tuesday, December 24, 2013 1:28:14 AM UTC+2, Joakim Erdfelt wrote:

probably best if you work up a github project of your own with concepts.

On Mon, Dec 23, 2013 at 4:06 PM, Firas Al Kafri fira...@gmail.com wrote:

Hello everyone and thank you for making this project available to the public.

A few months ago I have used Autobahn for one of my android projects, I used it to have a realtime notifications system, and used it to trigger some events on a raspberry-pi device, I used the standard Node.js web-socket library as a server, I would like to contribute my work to this project and help in it’s Node.js support.

Regards,

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.

For more options, visit https://groups.google.com/groups/opt_out.

0 Likes

#4

Hello everyone and thank you for making this project available to the
public.

A few months ago I have used Autobahn for one of my android projects, I

Great! Are you using AutobahnAndroid as a plain WebSocket library, or are you WAMP?

used it to have a realtime notifications system, and used it to trigger
some events on a raspberry-pi device, I used the standard Node.js
web-socket library as a server, I would like to contribute my work to
this project and help in it's Node.js support.

We do want AutobahnJS support Node.js in the upcoming future .. for WAMP.

So it if you could expand a little on your specific use of Autobahn and your needs?

/Tobias

···

Am 24.12.2013 00:06, schrieb Firas Al Kafri:

Regards,

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

0 Likes

#5

Hi Tobias,
I’ve done a reasonable amount of work refactoring and enhancing the WAMP.IO Node.js module and am using the new code in a reasonably complex Web App that will shortly go into Alpha. I haven’t done any work on the docs or put it up on Github yet. If it’s of interest let me know and I’ll squeeze in some time in Jan to do this.

···

On Tue, Dec 24, 2013 at 10:47 AM, Tobias Oberstein tobias.o...@gmail.com wrote:

Am 24.12.2013 00:06, schrieb Firas Al Kafri:

Hello everyone and thank you for making this project available to the

public.

A few months ago I have used Autobahn for one of my android projects, I

Great! Are you using AutobahnAndroid as a plain WebSocket library, or are you WAMP?

used it to have a realtime notifications system, and used it to trigger

some events on a raspberry-pi device, I used the standard Node.js

web-socket library as a server, I would like to contribute my work to

this project and help in it’s Node.js support.

We do want AutobahnJS support Node.js in the upcoming future … for WAMP.

So it if you could expand a little on your specific use of Autobahn and your needs?

/Tobias

Regards,

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.

For more options, visit https://groups.google.com/groups/opt_out.

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.

For more options, visit https://groups.google.com/groups/opt_out.


Neville Franks, Author of Surfulater - Your off-line Digital Reference Library

Soft As It Gets Pty Ltd, http://www.surfulater.com - Download your copy now.

Victoria, Australia Blog: http://blog.surfulater.com

0 Likes

#6

Hi Neville,

Hi Tobias,
I've done a reasonable amount of work refactoring and enhancing the
WAMP.IO <http://WAMP.IO> Node.js module and am using the new code in a
reasonably complex Web App that will shortly go into Alpha. I haven't
done any work on the docs or put it up on Github yet. If it's of
interest let me know and I'll squeeze in some time in Jan to do this.

I've just looked at the web site .. but there wasn't any info;)

FWIW, AutobahnJS will support Node and implement the roles Caller/Callee and Publisher/Subscriber.

AutobahnJS will not implement Broker/Dealer - these roles (as well as the others) will only be implemented in AutobahnPython and Crossbar.io.

Depending on your application requirements, if you want to structure your app backend so it runs on Node/AutobahnJS by using the respective roles, that might save you some efforts going to WAMPv2 - if you plan to do that of course.

To make it crystal clear: you can of course continue to use WAMPv1 together with AutobahnJS 0.8.1 ..

The next major release of AutobahnJS (0.9.x) will support WAMPv2, but deprecate WAMPv1.

/Tobias

···

Am 26.12.2013 22:35, schrieb Neville Franks:

On Tue, Dec 24, 2013 at 10:47 AM, Tobias Oberstein > <tobias.o...@gmail.com <mailto:tobias.o...@gmail.com>> wrote:

    Am 24.12.2013 00:06, schrieb Firas Al Kafri:

        Hello everyone and thank you for making this project available
        to the
        public.

        A few months ago I have used Autobahn for one of my android
        projects, I

    Great! Are you using AutobahnAndroid as a plain WebSocket library,
    or are you WAMP?

        used it to have a realtime notifications system, and used it to
        trigger
        some events on a raspberry-pi device, I used the standard Node.js
        web-socket library as a server, I would like to contribute my
        work to
        this project and help in it's Node.js support.

    We do want AutobahnJS support Node.js in the upcoming future .. for
    WAMP.

    So it if you could expand a little on your specific use of Autobahn
    and your needs?

    /Tobias

        Regards,

        --
        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
        <mailto:autobahnws%2...@googlegroups.com>.
        For more options, visit
        https://groups.google.com/__groups/opt_out
        <https://groups.google.com/groups/opt_out>.

    --
    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
    <mailto:autobahnws%2...@googlegroups.com>.
    For more options, visit https://groups.google.com/__groups/opt_out
    <https://groups.google.com/groups/opt_out>.

--
Neville Franks, Author of Surfulater - Your off-line Digital Reference
Library
  Soft As It Gets Pty Ltd, http://www.surfulater.com - Download your
copy now.
  Victoria, Australia Blog: http://blog.surfulater.com

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

0 Likes

#7

Hi Tobias,
Apologies for the slow reply. I am developing a Web app that replaces or more correctly supersedes Surfulater, which I assume is the site you visited. The new Web app does not have a Web site yet. The App will enter early alpha release this month.

It is unlikely that I’ll migrate to WAMP V2 as I have too much invested in the code as it is and from my brief knowledge of WAMP V2 I don’t think it offers anything new that I specifically need.

Here is a possibly incomplete list of the changes I’ve made to the original Nico Kaiser node.js module.

    • Removed client.topics and updated all code to user Server.topics.clients instead. IMO client.topics was not needed
  • as it duplicated functionality already available, added extra code and wasted memory. It may have provided better

  • cleanup performance when a client disconnects but I can’t see that being very important.

    • Added the ability to use group’s of clients and to only publish to clients in a specific group. I’ve implemented
  • groups as a normal Array vs. an Associative array as the most frequent operation is iterating the clients in a group, not

  • locating a specific client in a group.

    • Server RPC Events now know the client that called them.
    • Added ‘use strict;’ and updated code as required.
    • Refactored various functions.
    • Reformatted to use 4 space indenting etc.
    • Removed early returns and duplicated code.
    • Added Server.rpc() and updated handlers.CALL to call it.
    • Added Server.init_procs().
    • Added Server.options.notify_on_unknown_procedure.
    • Added Server.getClient() & use of Lodash.js
    • Reworked Server publish functions to match WAMP spec. to fully implement exclude and eligible options.
    • Added publishtoclient().
    • Updated to use Minilog instead of debug for logging.
···

On Sun, Dec 29, 2013 at 6:15 AM, Tobias Oberstein tobias.o...@gmail.com wrote:

Hi Neville,

Am 26.12.2013 22:35, schrieb Neville Franks:

Hi Tobias,

I’ve done a reasonable amount of work refactoring and enhancing the

WAMP.IO <http://WAMP.IO> Node.js module and am using the new code in a

reasonably complex Web App that will shortly go into Alpha. I haven’t

done any work on the docs or put it up on Github yet. If it’s of

interest let me know and I’ll squeeze in some time in Jan to do this.

I’ve just looked at the web site … but there wasn’t any info;)

FWIW, AutobahnJS will support Node and implement the roles Caller/Callee and Publisher/Subscriber.

AutobahnJS will not implement Broker/Dealer - these roles (as well as the others) will only be implemented in AutobahnPython and Crossbar.io.

Depending on your application requirements, if you want to structure your app backend so it runs on Node/AutobahnJS by using the respective roles, that might save you some efforts going to WAMPv2 - if you plan to do that of course.

To make it crystal clear: you can of course continue to use WAMPv1 together with AutobahnJS 0.8.1 …

The next major release of AutobahnJS (0.9.x) will support WAMPv2, but deprecate WAMPv1.

/Tobias

On Tue, Dec 24, 2013 at 10:47 AM, Tobias Oberstein

<tobias.o...@gmail.com mailto:tobias.oberstein@gmail.com> wrote:

Am 24.12.2013 00:06, schrieb Firas Al Kafri:



    Hello everyone and thank you for making this project available

    to the

    public.



    A few months ago I have used Autobahn for one of my android

    projects, I





Great! Are you using AutobahnAndroid as a plain WebSocket library,

or are you WAMP?





    used it to have a realtime notifications system, and used it to

    trigger

    some events on a raspberry-pi device, I used the standard Node.js

    web-socket library as a server, I would like to contribute my

    work to

    this project and help in it's Node.js support.





We do want AutobahnJS support Node.js in the upcoming future .. for

WAMP.



So it if you could expand a little on your specific use of Autobahn

and your needs?



/Tobias





    Regards,



    --

    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

    <mailto:autobahnws%2Bunsu...@googlegroups.com>.

    For more options, visit

    [https://groups.google.com/__groups/opt_out](https://groups.google.com/__groups/opt_out)

    <[https://groups.google.com/groups/opt_out](https://groups.google.com/groups/opt_out)>.






--

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

<mailto:autobahnws%2Bunsu...@googlegroups.com>.

For more options, visit [https://groups.google.com/__groups/opt_out](https://groups.google.com/__groups/opt_out)

<[https://groups.google.com/groups/opt_out](https://groups.google.com/groups/opt_out)>.

Neville Franks, Author of Surfulater - Your off-line Digital Reference

Library

Soft As It Gets Pty Ltd, http://www.surfulater.com - Download your

copy now.

Victoria, Australia Blog: http://blog.surfulater.com

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.

For more options, visit https://groups.google.com/groups/opt_out.

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.

For more options, visit https://groups.google.com/groups/opt_out.


Neville Franks, Author of Surfulater - Your off-line Digital Reference Library

Soft As It Gets Pty Ltd, http://www.surfulater.com - Download your copy now.

Victoria, Australia Blog: http://blog.surfulater.com

0 Likes

#8

Hi Neville,

It is unlikely that I'll migrate to WAMP V2 as I have too much invested
in the code as it is and from my brief knowledge of WAMP V2 I don't
think it offers anything new that I specifically need.

That's pity;(

In this case however, I'm afraid, it wouldn't make much sense to spread the implementation to a wider audience. It'll only create headaches/incompabilities looking forward - AutobahnJS will deprecate WAMPv1.

But that's of course only my view: it's your project and code, so you can (obviously) do whatever you like;)

/Tobias

0 Likes