輪詢vs WebSockets vs Socket.IO(簡單說明)-Chat App Part11



在此視頻中,我們將介紹HTTP短輪詢,長輪詢和WebSockets之間的區別。然後,我們將研究Socket.IO,看看它與短輪詢,長輪詢和WebSockets有何關係。最後,我們將簡要討論Flask-SocketIO。這是有關創建聊天應用程序的13部分視頻系列的第11部分。

資源:
下載源文件:https://github.com/sandeepsudhakaran/rchat-app
實時鏈接到最終的聊天應用程序:https://rchat-app.herokuapp.com/

該視頻中引用的鏈接:
Flask-SocketIO:https://flask-socketio.readthedocs.io/en/latest/
WebSocket兼容性:https://caniuse.com/#search=Websocket

該系列的視頻:
第0部分。介紹視頻:https://youtu.be/pvUUidK1zuw
第1部分。設置虛擬環境,Heroku和PostgreSQL:https://youtu.be/eNZ8ZS88F4M
第2部分。創建基本的Flask應用程序:https://youtu.be/wO7a7R5GGA8
第三部分。使用WTForms將基本表單添加到頁面:https://youtu.be/EpJRJsmqnn0
第4部分。使用WTForms宏的更清潔的代碼:https://youtu.be/HY0le1NAczc
第5部分。使用SQLAlchemy和Flask-SQLAlchemy將表單連接到PostgreSQL資料庫:https://youtu.be/7EeAZx78P2U
第6部分。WTForms / Flask-WTF的自定義驗證器:https://youtu.be/TZvb1Wurj7w
第7部分:創建登錄頁面:https://youtu.be/DbAKzi0kR80
第8部分:使用PBKDF2 / Passlib進行哈希處理:https://youtu.be/U7FaYdxZLA4
第9部分。使用Flask-Login進行會話管理:https://youtu.be/rrIdQJSKiP4
第10部分。使用Flask的消息閃爍:https://youtu.be/wQXSDwCgXIQ
第11部分。輪詢,WebSocket和Socket.IO簡介:該視頻
第12部分。使用Flask-SocketIO創建應用程序:https://youtu.be/zQDzNNt6xd4
第13部分。在Heroku中部署Flask應用程序:https://youtu.be/FWU_tJqr1Po。

8 comments
  1. I agree as well. Really well made video. ALSO, you didn』t say any 「guys」 like 「so guys」, 「ok guys」, guys in every 5 seconds. Well done man!!!!

  2. Thanks a lot Sandeep. Your animated explanation of SocketIO in this part 11 as well as flask-socketio & websocket implementation in part 12 really helped me to understand how to use it!

  3. I read a number of blogs but couldn't get a clear picture of the poling and sockets. The quest ends here.. Thank you very much…. Please come up with more videos.

Comments are closed.