事件:'frameError'
¥Event: 'frameError'
-
type<integer> 帧类型。¥
type<integer> The frame type. -
code<integer> 错误代码。¥
code<integer> The error code. -
id<integer> 流 id(或如果帧不与流相关联,则为0)。¥
id<integer> The stream id (or0if the frame isn't associated with a stream).
当尝试在会话上发送帧时发生错误时会触发 'frameError' 事件。如果无法发送的帧与特定的 Http2Stream 相关联,则会尝试在 Http2Stream 上触发 'frameError' 事件。
¥The 'frameError' event is emitted when an error occurs while attempting to
send a frame on the session. If the frame that could not be sent is associated
with a specific Http2Stream, an attempt to emit a 'frameError' event on the
Http2Stream is made.
如果 'frameError' 事件与流相关联,则该流将在 'frameError' 事件之后立即关闭并销毁。如果事件与流无关,则 Http2Session 将在 'frameError' 事件之后立即关闭。
¥If the 'frameError' event is associated with a stream, the stream will be
closed and destroyed immediately following the 'frameError' event. If the
event is not associated with a stream, the Http2Session will be shut down
immediately following the 'frameError' event.