Can I use a python frontend on crossbar.io??

#1

Hello,

I am trying to workout a simple example where I use a simple python frontend for crossbar.

What I tried was :

  1. install crossbar, made and python hello backend ( with js frontend )… it worked.
  2. changed the backend with one of the pubsub examples ( the complex one ). - adjusted the crossbar config.json.
  3. first tried the js frontend from the pubsub example, it worked…
  4. then tried the python frontend from the pubsub example… it failed…
    ( tested with again with the python backend from the pubsub example … it worked )

Error was :
014-06-20 16:43:26-0300 [-] Log opened.
2014-06-20 16:43:26-0300 [-] Running on reactor <twisted.internet.epollreactor.EPollReactor object at 0x204d6d0>
2014-06-20 16:43:26-0300 [-] Starting factory <autobahn.twisted.websocket.WampWebSocketClientFactory instance at 0x21c92d8>
2014-06-20 16:43:26-0300 [-] WAMP-over-WebSocket transport lost: wasClean = False, code = 1006, reason = ‘connection was closed uncleanly (None)’
2014-06-20 16:43:26-0300 [-] Traceback (most recent call last):
2014-06-20 16:43:26-0300 [-] File “/home/bb/develop3/env/lib/python2.7/site-packages/autobahn/wamp/websocket.py”, line 74, in onClose
2014-06-20 16:43:26-0300 [-] self._session.onClose(wasClean)
2014-06-20 16:43:26-0300 [-] AttributeError: WampWebSocketClientProtocol instance has no attribute ‘_session’
2014-06-20 16:43:26-0300 [-] Stopping factory <autobahn.twisted.websocket.WampWebSocketClientFactory instance at 0x21c92d8>

Looking very little in the crossbar docs, I did not find any python frontend examples… is that not supported???

Best regards

Brian

0 Likes

#2

blah,blah

Looking very little in the crossbar docs, I did not find any python frontend examples… is that not supported???

Best regards

Brian

Sorry wasting you time…

Of course the frontend can be in python, or whatever else, as long they speak the “WAMP”.

Brian

···
0 Likes

#3

Hello,

I am trying to workout a simple example where I use a simple python
frontend for crossbar.

What I tried was :

1) install crossbar, made and python hello backend ( with js frontend
)... it worked.
2) changed the backend with one of the pubsub examples ( the complex one
). - adjusted the crossbar config.json.
3) first tried the js frontend from the pubsub example, it worked...
4) then tried the python frontend from the pubsub example.. it failed...
   ( tested with again with the python backend from the pubsub example
.. it worked )

Frontend components in Python are indeed supported.

Seems, there was an issue with examples not providing a URL.

Anyway, I've simplified the running of the examples and polished up a little

https://github.com/tavendo/AutobahnPython/tree/master/examples/twisted/wamp/basic

I have also tested all examples both with the included basicrouter.py as well as Crossbar.io.

Cheers,
/Tobias

···

Am 20.06.2014 22:02, schrieb theb...@gmail.com:

Error was :
014-06-20 16:43:26-0300 [-] Log opened.
2014-06-20 16:43:26-0300 [-] Running on reactor
<twisted.internet.epollreactor.EPollReactor object at 0x204d6d0>
2014-06-20 16:43:26-0300 [-] Starting factory
<autobahn.twisted.websocket.WampWebSocketClientFactory instance at
0x21c92d8>
2014-06-20 16:43:26-0300 [-] WAMP-over-WebSocket transport lost:
wasClean = False, code = 1006, reason = 'connection was closed uncleanly
(None)'
2014-06-20 16:43:26-0300 [-] Traceback (most recent call last):
2014-06-20 16:43:26-0300 [-] File
"/home/bb/develop3/env/lib/python2.7/site-packages/autobahn/wamp/websocket.py",
line 74, in onClose
2014-06-20 16:43:26-0300 [-] self._session.onClose(wasClean)
2014-06-20 16:43:26-0300 [-] AttributeError: WampWebSocketClientProtocol
instance has no attribute '_session'
2014-06-20 16:43:26-0300 [-] Stopping factory
<autobahn.twisted.websocket.WampWebSocketClientFactory instance at
0x21c92d8>

Looking very little in the crossbar docs, I did not find any python
frontend examples..... is that not supported???

Best regards

Brian

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