aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/glossary/websockets
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/glossary/websockets
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/zh-cn/glossary/websockets')
-rw-r--r--files/zh-cn/glossary/websockets/index.html37
1 files changed, 37 insertions, 0 deletions
diff --git a/files/zh-cn/glossary/websockets/index.html b/files/zh-cn/glossary/websockets/index.html
new file mode 100644
index 0000000000..0f7b17fee2
--- /dev/null
+++ b/files/zh-cn/glossary/websockets/index.html
@@ -0,0 +1,37 @@
+---
+title: WebSockets
+slug: Glossary/WebSockets
+tags:
+ - Web
+ - WebSocket
+ - 协议
+ - 基础设施
+ - 术语
+ - 网络
+ - 连接
+translation_of: Glossary/WebSockets
+---
+<p>WebSocket 是一种在客户端与{{Glossary("Server", "服务器")}}之间保持{{Glossary("TCP")}}长连接的{{Glossary("protocol","网络协议")}},这样它们就可以随时进行信息交换。</p>
+
+<p>虽然任何客户端或服务器上的应用都可以使用WebSocket,但原则上还是指{{Glossary("Browser", "浏览器")}}与服务器之间使用。通过WebSocket,服务器可以直接向客户端发送数据,而无须客户端周期性的请求服务器,以动态更新数据内容。</p>
+
+<h2 id="深入了解">深入了解</h2>
+
+<h3 id="基本知识" style="line-height: 24px;">基本知识</h3>
+
+<ul>
+ <li>{{Interwiki("wikipedia", "Websocket")}}  维基百科</li>
+</ul>
+
+<h3 id="技术参考">技术参考</h3>
+
+<ul>
+ <li><a href="/zh-CN/docs/Web/API/WebSocket">WebSocket的MDN参考</a></li>
+</ul>
+
+<h3 id="学习了解">学习了解</h3>
+
+<ul>
+ <li><a href="/zh-CN/docs/Web/API/WebSockets_API/Writing_WebSocket_client_applications">编写WebSocket客户端应用</a></li>
+ <li><a href="/zh-CN/docs/Web/API/WebSockets_API/Writing_WebSocket_servers">编写WebSocket服务器应用</a></li>
+</ul>