Node.js/TCP:修订间差异
来自康健生活
| 第9行: | 第9行: | ||
# 客户端自定义心跳消息头,服务器接收后进行回应。 | # 客户端自定义心跳消息头,服务器接收后进行回应。 | ||
# TCP 协议自带的保活功能。 | # TCP 协议自带的保活功能。 | ||
== 实现 == | |||
# 客户端意外断开链接的处理方式 | |||
<syntaxhighlight lang="javascript"> | |||
Insert comment here | |||
</syntaxhighlight> | |||
| 第9行: | 第9行: | ||
# 客户端自定义心跳消息头,服务器接收后进行回应。 | # 客户端自定义心跳消息头,服务器接收后进行回应。 | ||
# TCP 协议自带的保活功能。 | # TCP 协议自带的保活功能。 | ||
== 实现 == | |||
# 客户端意外断开链接的处理方式 | |||
<syntaxhighlight lang="javascript"> | |||
Insert comment here | |||
</syntaxhighlight> | |||