'frameError' 事件


当尝试发送帧时发生错误时会触发 'frameError' 事件。 当调用时,句柄函数将接收标识帧类型的整数参数和标识错误代码的整数参数。 Http2Stream 实例将在 'frameError' 事件触发后立即销毁。

  • type <integer> The frame type.
  • code <integer> The error code.
  • id <integer> The stream id (or 0 if the frame isn't associated with a stream).

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.