iharshit009 / SecretPeek

Anonymity is taken Seriously. It is a webpage to confess your secrets.
8 stars 12 forks source link

Setting up Real Time Communication #5

Open iharshit009 opened 3 years ago

iharshit009 commented 3 years ago

Using a Web Socket would help us deal with it. Using Web Sockets we can get a real-time feel of getting updates in our web app. Now the question arises why couldn't we use our usual flask app for it? For that, you need to know about Polling and Streaming – Concept & Scenarios

Screenshot from 2020-12-06 01-30-42

Usually, the Flask app works on WSGI which needs to request every time the data from the server. We will use ASGI to avoid requesting the data every time.

Screenshot from 2020-12-06 01-29-09

Get a quick idea on the working of it from the resources below:

Rits1272 commented 3 years ago

Any updates @iharshit009?

github-actions[bot] commented 3 years ago

Stale issue message