Out of server event sending

#1

Hi,

Is there a way to connect to a WAMP server and send an event without running an event loop ?

This could be useful for one way communication from synchronous process that just want to broacast and not receive.

Regards

0 Likes

#2

Hi,

Is there a way to connect to a WAMP server and send an event without
running an event loop ?

Huh. Having a full WAMP client on top of something else than Twisted or asyncio is a lot of work. Essentially, a full WAMP implementation. But .. see below ..

This could be useful for one way communication from synchronous process
that just want to broacast and not receive.

What we can easily do is add a HTTP push API to Crossbar for publishing "one shot" events.

That would work with _any_ HTTP client (e.g. publish an event with curl) and hence also with synchronous code like Python httplib.

In fact, the old WebMQ (Crossbar predessor) did have this. And we had wrappers around httplib to simplify things up to a 2 lines

https://github.com/tavendo/WebMQConnectPython/blob/master/examples/basic/push.py

The wrapper is trivial

https://github.com/tavendo/WebMQConnectPython/blob/master/webmqconnect/webmqconnect/client.py

and there were examples like this

https://github.com/tavendo/WebMQConnectPython/tree/master/examples/flask

and all that also for PHP

https://github.com/tavendo/WebMQConnectPHP

https://github.com/tavendo/WebMQConnectPHP/blob/master/examples/basic/action.php

ยทยทยท

Am 25.05.2014 12:50, schrieb Michel Desmoulin:

==

Right;)

https://github.com/crossbario/crossbar/issues/58

Cheers,
/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+...@googlegroups.com
<mailto:autobahnws+...@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout.

0 Likes