事件:'goaway'
¥Event: 'goaway'
-
errorCode
<number>GOAWAY
帧中指定的 HTTP/2 错误代码。¥
errorCode
<number> The HTTP/2 error code specified in theGOAWAY
frame. -
lastStreamID
<number> 远程对等方成功处理的最后一个流的 ID(如果未指定 ID,则为0
)。¥
lastStreamID
<number> The ID of the last stream the remote peer successfully processed (or0
if no ID is specified). -
opaqueData
<Buffer> 如果GOAWAY
帧中包含其他不透明数据,则将传入包含该数据的Buffer
实例。¥
opaqueData
<Buffer> If additional opaque data was included in theGOAWAY
frame, aBuffer
instance will be passed containing that data.
接收到 GOAWAY
帧时触发 'goaway'
事件。
¥The 'goaway'
event is emitted when a GOAWAY
frame is received.
'goaway'
事件触发时,Http2Session
实例会自动关闭。
¥The Http2Session
instance will be shut down automatically when the 'goaway'
event is emitted.