事件:'goaway'
【Event: 'goaway'】
errorCode<number>GOAWAY帧中指定的 HTTP/2 错误代码。lastStreamID<number> 远程对等方成功处理的最后一个流的ID(如果未指定ID,则为0)。opaqueData<Buffer> 如果在GOAWAY帧中包含了额外的不透明数据,将会传入一个包含这些数据的Buffer实例。
当接收到 GOAWAY 帧时,会触发 'goaway' 事件。
【The 'goaway' event is emitted when a GOAWAY frame is received.】
Http2Session 实例将在 'goaway' 事件触发时自动关闭。
【The Http2Session instance will be shut down automatically when the 'goaway'
event is emitted.】