Secure connection with ESP8266 and socket connection

I want my system to stay connected 100% of the time. I’m using a TCP Socket connection on ESP8266. So, I created a test Sketch like this attached file (and a NodeJS server app). Everything works fine, that is, I send information to the server and it replies back.

My question is: How to make socket connection secure by using ESP8266 and socket connection?

socket_client.ino (2.16 KB)