Class: GoAway
GOAWAY (0x10) winds down a session, or — on a request stream — migrates that one request.
Constructors
Constructor
new GoAway(
newSessionUri?,timeout?):GoAway
Parameters
newSessionUri?
string
timeout?
bigint = 0n
Returns
GoAway
Properties
newSessionUri?
optionalnewSessionUri?:string
timeout
readonlytimeout:bigint
Milliseconds the sender waits for graceful closure; 0 means no specific timeout. On the control stream the sender closes the session with GOAWAY_TIMEOUT after it, on a request stream it resets the stream with GOING_AWAY.
Methods
getType()
getType():
ControlMessageType
Returns
serialize()
serialize():
FrozenByteBuffer
Returns
parsePayload()
staticparsePayload(buf):GoAway
Parameters
buf
Returns
GoAway