A
A
Andrey Shubin2014-11-13 11:31:07
uWSGI
Andrey Shubin, 2014-11-13 11:31:07

Developing a chat for a website with Python/Flask?

Hello! I develop sites in Python/Flask, often it becomes necessary to create chats on sites, or push notifications, and doing this with the help of every second ajax polls is somehow not very good. I read about such things as commet, long polling, but as I understand Web sockets will be better. Tell me in which direction to dig in order to start using them specifically for python / flask? If so, please share articles on this topic.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
A
Andrey K, 2014-11-13
@idegree

For chats, Tornado is the best .

M
Max, 2014-11-13
@AloneCoder

centrifuge
And you can read about it on Habré

A
Alexey, 2014-11-13
@MAKAPOH

Look towards the wamp protocol and its implementation like autobahn .

M
MrFrizzy, 2014-11-18
@MrFrizzy

You can also take a look at crossbar

M
Michael, 2014-11-23
@nextel

stackoverflow.com/questions/8143141/using-flask-an... this is what helped me, from this example you can grow a flask + tornado mutant that works quite conveniently

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question