I'm trying to take a dictionary supplied from a websocket client
(connected to a gephi streaming server, http://www.gephi.org), and
are you talking about
with the announced ws api?
publish the dictionary as an event to the autobahn server.
as far as I can see it might be much simpler to create an Autobahn WAMP server that in addition connects to gephi via an embedded pure ws autobahn client. you can use "dispatch" on WAMP server factory to inject pubsub events into the broker.
The 'import websocket' on line 13 is the python websocket-client module
why are you using another Python ws library? this introduces its own event loop, be more complicated to integrate .. and the stuff seems to be pretty alpha. Autobahn includes a full featured, tested pure ws client ..
I'm finding if I assign the protocol handler to a variable ("proto") and
try and call publish (proto.publish(msg)), I get that publish doesn't
have a factory attribute (used to do the serialization at line 1387 of
wamp.py). If i try and call the factory (factory.protocol.publish(msg))
I get the error that publish is an unbound method.
the whole program wont work for a couple of reasons .. starting with that you are using 2 different event loops.
anyway, I created a Gephi bridge which might be what you are looking for:
easier to code than to explain ..
let me know if that helps.
Am 01.03.2013 20:18, schrieb Gabriel Bassett:
On Friday, March 1, 2013 12:01:39 PM UTC-6, Tobias Oberstein wrote:
Not sure what you trying to do .. also: what library is imported on
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.