Node.js/TCP:修订间差异
来自康健生活
| 第18行: | 第18行: | ||
== 断开 == | == 断开 == | ||
断开连接监听。 | 断开连接监听。 | ||
TODO, thinkjs, 等待详说。 | |||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
this.ctx.req.on('error', () => { | this.ctx.req.on('error', () => { | ||
| 第18行: | 第18行: | ||
== 断开 == | == 断开 == | ||
断开连接监听。 | 断开连接监听。 | ||
TODO, thinkjs, 等待详说。 | |||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
this.ctx.req.on('error', () => { | this.ctx.req.on('error', () => { | ||