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.