PoliticalFraming / politicalframing

http://www.politicalframing.com
9 stars 1 forks source link

Evaluate different methods of using Websockets #23

Open AlJohri opened 10 years ago

AlJohri commented 10 years ago

https://github.com/progrium/dokku/issues/148

AlJohri commented 10 years ago

https://github.com/kennethreitz/flask-sockets https://github.com/miguelgrinberg/Flask-SocketIO

http://blog.miguelgrinberg.com/post/easy-websockets-with-flask-and-gevent -- talks about both flask-sockets and Flask-SocketIO

In all honesty, using raw WebSockets seems like a terrible idea. Should probably use socketio or sockjs.

AlJohri commented 10 years ago

SockJS is considered a "better" implementation than Socket.io. Check out this quora for an explanation http://www.quora.com/Sock-js/What-are-the-pros-and-cons-of-socket-io-vs-sockjs

AlJohri commented 10 years ago

Using SockJS with AngularjS on client side

https://gist.github.com/lrvick/7043627

not specific to python, but the angular side looks fine http://www.gilesthomas.com/2013/02/a-super-simple-chat-app-with-angularjs-sockjs-and-node-js/

AlJohri commented 10 years ago

http://lucumr.pocoo.org/2012/9/24/websockets-101/