TLS 1.3 client help

Hello,

I’m creating and electron app and it’s client used for communication with server (server side can’t be touched). For establishing connection I used node.js documentation for TLS where is used:

const tls = require('tls');

Everytime I try to use it and find the protocol version it tells me that TLSv1.2 is used. But sever that I’m connecting to is using TLSv1.3 for sure.

Could somebody provide me and example of TLS client which uses 1.3 version please? I doesn’t have to be using same thing I mentioned above but I would prefer it to be written in javascript.