[polyml] wrapping socket with tls