http2session.goaway([code[, lastStreamID[, opaqueData]]])


  • code <number> 一个 HTTP/2 错误代码
  • lastStreamID <number> 最后处理的 Http2Stream 的数字 ID
  • opaqueData <Buffer> | <TypedArray> | <DataView> 一个 TypedArrayDataView 实例,包含将在 GOAWAY 帧中携带的附加数据。

向连接的对等方发送 GOAWAY 帧,_不_关闭 Http2Session

【Transmits a GOAWAY frame to the connected peer without shutting down the Http2Session.】