事件:'frameError'


【Event: 'frameError'

当尝试发送帧时发生错误时,会触发 'frameError' 事件。调用时,处理函数将接收一个整数参数,标识帧类型,以及一个整数参数,标识错误码。在 'frameError' 事件触发后,Http2Stream 实例将立即被销毁。

【The 'frameError' event is emitted when an error occurs while attempting to send a frame. When invoked, the handler function will receive an integer argument identifying the frame type, and an integer argument identifying the error code. The Http2Stream instance will be destroyed immediately after the 'frameError' event is emitted.】