• had_error {boolean} 如果 socket 有传输错误就为 true。

    一旦 socket 完全关闭就发出该事件。参数 had_error 是 boolean 类型,表明 socket 被关闭是否取决于传输错误。