issues
search
MJingv
/
jehol-person-blog
Jehol's Blog 🙋 (hexo+react)
https://mjingv.github.io/JeholBlog/
0
stars
1
forks
source link
了解websocket
#86
Open
MJingv
opened
1 year ago
MJingv
commented
1 year ago
https://coolshell.me/articles/websocket-intro-first.html
介绍
浏览器里用(应用层协议,基于tcp,复用http握手)
双向通信
使用简单
优点
双向通信,实时
二进制
控制开销,头部小
支持扩展
主要内容
如何建立连接
如何交换数据
数据帧格式
如何维持连接
demo
https://www.pubnub.com/blog/nodejs-websocket-programming-examples/
ws_demo
https://coolshell.me/articles/websocket-intro-first.html
介绍
优点
主要内容
demo