Node's TLS module provides a resumeSession event for resuming an earlier session. Can someone show me a sample code as to how to initiate the steps on the client side?
相关问题
- Is there a limit to how many levels you can nest i
- Multiple sockets for clients to connect to
- How to toggle on Order in ReactJS
- void before promise syntax
- npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fs
If I understand your question correctly, you are asking how to resume a TLS session on the client-side with
tls.connect(options, [callback])
. To make it short: You can't. You'd need to be able to send the session ID of the previous session. This is currently not implemented in Node's API.To be a bit more sophisticated: You could.
Maybe you'd like to open an issue.