# Websockets In Python + Flask On Heroku

DevFeed: [Websockets In Python + Flask On Heroku](<https://devfeed.tech/articles/websockets-in-python-flask-on-heroku-32201.md>)

Original publisher: [Read original article](<https://bruceeckel.com/2015/03/10/websockets-in-flask-on-heroku/>)

Author: Bruce Eckel

Published: 2015-03-10T00:00:00Z

Content type: tutorial

Language: en

Sources: [Bruce Eckel - Computing Thoughts](<https://devfeed.tech/sources/bruce-eckel-computing-thoughts.md>)

Topics: [WebSocket](<https://devfeed.tech/topics/websocket.md>), [Flask](<https://devfeed.tech/topics/flask.md>), [Heroku](<https://devfeed.tech/topics/heroku.md>), [Python](<https://devfeed.tech/topics/python.md>), [web applications](<https://devfeed.tech/topics/web-applications.md>)

Tags: [applications](<https://devfeed.tech/tags/applications.md>), [flask](<https://devfeed.tech/tags/flask.md>), [heroku](<https://devfeed.tech/tags/heroku.md>), [python](<https://devfeed.tech/tags/python.md>), [websocket](<https://devfeed.tech/tags/websocket.md>), [websockets](<https://devfeed.tech/tags/websockets.md>)

## AI overview

This article explains how WebSockets enable two-way communication between clients and servers, then describes getting a basic WebSocket example running with Python's Flask framework hosted on Heroku.

## Source excerpt

Websockets change the shape of Internet development by allowing communication both ways -- not only can the client send messages to the server, but with a websocket the server can at any time push information to the client (not just when the client decides to connect to the server). In effect this brings us back to the convenient world of desktop applications where the program and the user interface have two-way communication.