File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -726,14 +726,14 @@ On the client, the `session` can be provided to the `session` option of
726
726
727
727
See [ Session Resumption] [ ] for more information.
728
728
729
- Note: For TLSv1.2 and below, [ ` tls.TLSSocket.getSession() ` ] [ ] can be called once
730
- the handshake is complete. For TLSv1.3, only ticket based resumption is allowed
729
+ For TLSv1.2 and below, [ ` tls.TLSSocket.getSession() ` ] [ ] can be called once
730
+ the handshake is complete. For TLSv1.3, only ticket- based resumption is allowed
731
731
by the protocol, multiple tickets are sent, and the tickets aren't sent until
732
- later, after the handshake completes, so it is necessary to wait for the
733
- ` 'session' ` event to get a resumable session. Applications are
734
- recommended to use the ` 'session' ` event instead of ` getSession() ` to ensure
735
- they will work for all TLS protocol versions. Applications that only expect to
736
- get or use 1 session should listen for this event only once:
732
+ after the handshake completes. So it is necessary to wait for the
733
+ ` 'session' ` event to get a resumable session. Applications
734
+ should use the ` 'session' ` event instead of ` getSession() ` to ensure
735
+ they will work for all TLS versions. Applications that only expect to
736
+ get or use one session should listen for this event only once:
737
737
738
738
``` js
739
739
tlsSocket .once (' session' , (session ) => {
You can’t perform that action at this time.
0 commit comments