Reputation: 2341
I'm trying to build an application with a websocket like functionality I'm using python (will be deployed on heroku with gunicorn)
So far my search led me to Bottle. A replacement for my current microframework - Flask. Bottle allows websocket functionality. http://bottlepy.org/docs/stable/async.html
My question is: Could I use the javascript part of socket.io (or something similar) to connect to Bottle? If yes, how?
Thank you.
Upvotes: 0
Views: 5893
Reputation: 542
You can also take a look at flask-socket.io, which would work with your current framework -- Flask. Aside from wrapping the lower-level functionality (gevent/SocketIO), it also adds some higher level functions such as rooms so you can group your users together.
Served me well on a previous project.
Upvotes: 1
Reputation: 2419
If you really want to get started, take a look at the examples in here:
There's also a bottle example up here:
You might want to start with the documentation at this address:
Hope this helps :)
Upvotes: 8