轮询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.