noisyboiler / wampy

Websocket RPC and Pub/Sub for Python applications and microservices
Mozilla Public License 2.0
127 stars 24 forks source link

flask example #69

Closed keiser1080 closed 5 years ago

keiser1080 commented 6 years ago

Hi,

On the description i see wampy can be used in a webapp. I have read the doc, and there are multiple example for standalone application, but no example of using wampy inside a web application. Could you post or add on the docs or on the example folder a simple flask example ? I have a flask aplication exposing an http service, and i want to extend it by publishing toward a crossbar router some event.

noisyboiler commented 6 years ago

Hi @keiser1080 good point! I've actually only used wampy with nameko, so I'll try out Flask asap and get an integration guide together asap. Thank you for raising this.

noisyboiler commented 5 years ago

this is still on my radar. it's a really good suggestion and wampy should have Flask, Django and Nameko examples high up in the docs.

keiser1080 commented 5 years ago

Hi,

Hi don't think it feasable. Because to combine with flask your application must be statefull.

Actually it's stateless, fo r example you can not use a sessions.

Le 10 nov. 2018 16:20, "simon" notifications@github.com a écrit :

this is still on my radar.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/noisyboiler/wampy/issues/69#issuecomment-437591179, or mute the thread https://github.com/notifications/unsubscribe-auth/ABqDzZaGLltG7ejSI6o5NaoxSmehugjyks5utu7OgaJpZM4XL88d .

noisyboiler commented 5 years ago

much like nameko integration needs a bespoke project, Flask will too. The very beginning: https://github.com/noisyboiler/flask-wamp

keiser1080 commented 5 years ago

Great!

Le jeu. 20 déc. 2018 à 16:32, simon notifications@github.com a écrit :

much like nameko integration needs a bespoke project, Flask will too. The very beginning: https://github.com/noisyboiler/flask-wamp

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/noisyboiler/wampy/issues/69#issuecomment-449037228, or mute the thread https://github.com/notifications/unsubscribe-auth/ABqDzcO7UlNhz2dMLKRkCRSy7NcUKAZWks5u662VgaJpZM4XL88d .

noisyboiler commented 5 years ago

here you go! https://github.com/noisyboiler/flask-wamp

noisyboiler commented 5 years ago

https://pypi.org/project/Flask-WAMP/