回调:OnVersionNegotiationCallback
🌐 Callback: OnVersionNegotiationCallback
thisquic.QuicSessionversion<number> 为此会话配置的 QUIC 版本(服务器不支持的版本)。requestedVersions<number[]> 服务器在版本协商数据包中宣告的版本。这些是服务器支持的版本。supportedVersions<number[]> 本地支持的版本,以两个元素的数组[minVersion, maxVersion]表示。
当服务器以版本协商包响应客户端的初始数据包时调用,表示客户端使用的版本不被支持。此回调返回后,会立即销毁会话。
🌐 Called when the server responds to the client's Initial packet with a Version Negotiation packet, indicating that the version used by the client is not supported. The session is always destroyed immediately after this callback returns.