Open glenfant opened 7 years ago
@glenfant Hi Gilles, nice to hear from you again;) We met at EuroPy last year in Bilbao .. talking about Plone etc
Rgd the templates:
Rgd 2: thinking is, if we can't keep up, then better not distribute at all rather distribute sth outdated.
You can find all the "hello" examples that were previously created from templates here and in the folders below.
This repo contains many many examples.
Which templates / languages are you interested in?
Hi @oberstet ,
Real fans work on sunday ;) This is a great news for Crossbar / Autobahn fans who got a very fast and efficient support. Many thanks for this fast feedback and hear from you.
Thanks, a "pip install -U crossbar" fixed the scaffolds (non) issue. I should read the changelog before issuing a ticket.
I can understand that maintainig templates IN crossbar may be painful. May I suggest the use of a good scaffolding tool (yeoman, cookiecutter, ...) in the future as a crossbar starter ?
The examples are great, many thanks to the contributors. I'm focusing on Python and JS examples.
BTW, is the crossbar WSGI server production ready (for a Django app) or should I prefer a more classical solution as Gunicorn or uWSGI ?
Don't reply now, enjoy your sunday with your friends and family ;)
@glenfant The Crossbar WSGI server is "just" Twisted's, so the answer is "yes it's production ready". See https://twistedmatrix.com/trac/wiki/TwistedWeb
Yeah, it is good to use.
The docs are lagging behind though. We actually have two more options that allow to control the underlying thread pool created:
minthreads
maxthreads
The docs probably should also have some more examples or link to them.
There is: https://github.com/crossbario/crossbar-examples/tree/master/django/realtimemonitor
This was contributed by https://github.com/sametmax, who has deeper Django know-how and also used Crossbar.io in this way a lot. So actually, @sametmax will know best. At least I know next to nothing about Django.
Then there are these: https://github.com/crossbario/autobahn-python/tree/master/examples/twisted/wamp/app/crochet
These show how to integrate WAMP client code talking to Crossbar.io (or in general a WAMP router), from within a blocking Flask/WSGI server running outside of Crossbar.io.
I wrote those as I was still into Flask .. but they should be good still.
Thanks @oberstet and @meejah for the time you spent to help me (and perhaps others). I just need to spend some time to "twist" my "asyncio" brain 👍
Hi,
When trying some templates with "crossbar init --template hello:nodejs" or "crossbar init --template hello:python", the "index.html" provided files refers an Amazon CDN provided Autobahn.js"
But this CDN has been removed by your fellows from Autobahn team. Thus these templates - and perhaps others - don't work.
https://groups.google.com/forum/#!topic/autobahnws/aHxWgImJvCY
Cheers