session.onnewtoken
- 类型:quic.OnNewTokenCallback
当从服务器接收到 NEW_TOKEN 令牌时要调用的回调函数。该令牌可以作为未来连接到同一服务器时的 token 选项传递,以跳过地址验证。可读/可写。
🌐 The callback to invoke when a NEW_TOKEN token is received from the server.
The token can be passed as the token option on a future connection to
the same server to skip address validation. Read/write.