stelar-time-real supports TLS for both of its protocols — WebSocket connections becomeDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/foxytp/stelar-time-real/llms.txt
Use this file to discover all available pages before exploring further.
wss:// and TCP connections are wrapped with Node.js’s native tls module. No external packages are required; the implementation uses only the built-in tls module that ships with Node.js. Enabling TLS on the server automatically applies to both the WebSocket upgrade and the TCP listener, so all traffic is encrypted with a single configuration change.
Server TLS configuration
Pass atls object containing the key and cert (as Buffer values) to the StelarServer constructor. Use readFileSync from the fs module to load your certificate files:
port (WebSocket) and tcpPort (TCP) automatically use TLS when the tls option is present — there is no separate flag per protocol.
Client: secure WebSocket (wss://)
Pass the fullwss:// URL and set tls: true in the client options:
Client: TCP + TLS
For TCP mode, setmode: 'tcp' alongside tls: true:
rejectUnauthorized: true is the default and tells Node.js to validate the server’s certificate against the system’s CA store. Set it to false only when connecting to a server with a self-signed certificate in a development environment — this disables certificate validation entirely.