Pusher.com service with autobahn

#1

Hello everyone, I’m new to autobahn and I would like to know whether it’s posible to implement a service like pusher.com with this great framework. Can anyone share som hints on that issue?

Thanks!

0 Likes

#2

Martin, I’m using autobahn and node.js on the server to publish data to browsers running autobahn.js. The browser clients do rpc calls to autobahn on the server. This all sounds like the things pusher can do, however I have no experience with it.

···

On Wed, Nov 20, 2013 at 5:36 AM, Martín Rouaux mart...@gmail.com wrote:

Hello everyone, I’m new to autobahn and I would like to know whether it’s posible to implement a service like pusher.com with this great framework. Can anyone share som hints on that issue?

Thanks!

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.


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

#3

Hi Mart�n,

Hello everyone, I'm new to autobahn and I would like to know whether
it's posible to implement a service like pusher.com with this great
framework. Can anyone share som hints on that issue?

In essence Pusher does this (at least last time I looked):

You can do a plain old HTTP/POST to some endpoint providing a topic and a payload.

Pusher will then "publish" that to all client connected, subscribed (and authorized?) for that topic. (It will also do C2C PubSub).

This HTTP/POST => WebSocket (WAMP PubSub) bridge is easy to do. And the best thing: it already exists, you don't even have to write it;)

This bridge (and much more) is part of Crossbar.io (which builds on Autobahn):

http://crossbar.io/

You can check out the code here:

https://github.com/crossbario/crossbar/blob/master/crossbar/crossbar/netservice/hubwebresource.py#L165

You can push out real-time messages to subscribers from any language that can do HTTP/POSTs .. here are 2 examples:

https://github.com/tavendo/WebMQConnectPHP
https://github.com/tavendo/WebMQConnectPython

Of course Crossbar.io also does the C2C PubSub thing. Easy. Builtin.

Note 1: "WebMQ" was the old name of Crossbar.io before we open-sourced it.
Note 2: That open-sourcing is done (all code is on GitHub), but there is cleanup/polishment to do .. docs to write etc etc

Cheers,
/Tobias

···

Am 19.11.2013 19:36, schrieb Mart�n Rouaux:

Thanks!

--
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

Thanks fot all the information!!

0 Likes

#5

I don’t know where to start wich crossbar since there is no documentation at all which is normal since you have recently open sourced it. Would you please help me on that?

0 Likes

#6

Hi Mart�n,

Note 2: That open-sourcing is done (all code is on GitHub), but there is
cleanup/polishment to do … docs to write etc etc

Cheers,

/Tobias

Hi Tobias,

maybe you can open up the github wiki pages for the crossbar.io repo? Then we can start to collect notes over there.

Roger

···

On Wednesday, November 20, 2013 1:29:36 AM UTC+1, Tobias Oberstein wrote:

0 Likes

#7

Yes, I know, that's not nice .. and we are working on polishing stuff up after open-sourcing and adding examples, documentation and such.

Since it seems you're interested mostly in "Pusher" like functionality, I've written 2 very basic Wiki pages

Installation (Windows):

https://github.com/crossbario/crossbar/wiki/Installation-on-Windows

And checking out the REST-to-WebSocket ("Pusher") stuff:

https://github.com/crossbario/crossbar/wiki/Using-the-REST-to-WebSocket-Pusher

Let me know if you run into issues, or need help to get running on Unix. Though installation on Unix can be as easy as:

    easy_install crossbar

if you've got Python.

Anyway, your feedback is welcome!

/Tobias

···

Am 20.11.2013 15:38, schrieb Martï¿œn Rouaux:

I don't know where to start wich crossbar since there is no
documentation at all which is normal since you have recently open
sourced it. Would you please help me on that?

0 Likes

#8

    Hi Mart�n,

...

    Note 2: That open-sourcing is done (all code is on GitHub), but
    there is
    cleanup/polishment to do .. docs to write etc etc

    Cheers,
    /Tobias

Hi Tobias,

maybe you can open up the github wiki pages for the crossbar.io repo?
Then we can start to collect notes over there.

Hi Roger,

That's a cool idea! Alex has added the Wiki and there are some rough info bits already:

https://github.com/crossbario/crossbar/wiki

Feel free to add more, improve, ask, comment, ...

Cheers,
/Tobias

···

Am 21.11.2013 04:27, schrieb Roger Erens:

On Wednesday, November 20, 2013 1:29:36 AM UTC+1, Tobias Oberstein wrote:

Roger

--
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